Merge pull request #245 from anderbellstudios/depfu/update/puma-6.4.1 #337
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: On push | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: docker-compose -f docker-compose.test.yml pull | |
- uses: satackey/[email protected] | |
continue-on-error: true | |
- run: docker-compose -f docker-compose.test.yml build | |
- run: docker-compose -f docker-compose.test.yml run web sh -c 'rails db:setup && rails webpacker:compile && rails test' | |
deploy_production: | |
needs: test | |
if: ${{ github.ref == 'refs/heads/main' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: satackey/[email protected] | |
continue-on-error: true | |
- uses: zenato/docker-action@master | |
with: | |
username: ${{ secrets.REGISTRY_USERNAME }} | |
password: ${{ secrets.REGISTRY_PASSWORD }} | |
repository: ${{ secrets.REGISTRY_REPO }} | |
registry: ${{ secrets.REGISTRY_URL }} | |
tag: production |