Skip to content

Fix test action

Fix test action #373

Workflow file for this run

name: On push
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: docker-compose -f docker-compose.test.yml up -d --build
- run: sleep 10
- run: docker-compose -f docker-compose.test.yml exec -T web curl -f -LI http://localhost:3000/healthcheck
- run: docker-compose -f docker-compose.test.yml down
deploy_production:
needs: test
if: ${{ github.ref == 'refs/heads/v2' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: zenato/docker-action@master
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
repository: ${{ secrets.REGISTRY_REPO }}
registry: ${{ secrets.REGISTRY_URL }}
tag: beta