Add custom fields #127
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deployment workflow | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_COMPOSE_VERSION: 1.29.2 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Login to Quay | |
run: echo "${{ secrets.QUAY_ROBOT_TOKEN }}" | docker login -u "${{ secrets.QUAY_ROBOT_USERNAME }}" --password-stdin quay.io | |
- name: Build | |
run: | | |
curl -L https://github.com/docker/compose/releases/download/${{ env.DOCKER_COMPOSE_VERSION }}/docker-compose-`uname -s`-`uname -m` > docker-compose | |
chmod +x docker-compose | |
sudo mv docker-compose /usr/local/bin | |
cp config-template.json config.json | |
make | |
- name: Run tests | |
run: make tests | |
- name: Run security tests | |
run: make security-tests | |
- name: Upload CC report | |
run: bash <(curl -s https://codecov.io/bash) -f tests/clover.xml | |
- name: Deploy | |
run: ./docker/push_image.sh | |