diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 8de7490..6649519 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -26,16 +26,19 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Login to GitHub Container Registry + if: ${{ github.ref == 'refs/heads/master' }} uses: docker/login-action@v1 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: build database docker container + if: ${{ github.ref == 'refs/heads/master' }} run: | docker build database/sql --tag ghcr.io/triplea-game/lobby/flyway:latest docker push ghcr.io/triplea-game/lobby/flyway:latest - name: build server docker container + if: ${{ github.ref == 'refs/heads/master' }} run: | docker build . --tag ghcr.io/triplea-game/lobby/server:latest docker push ghcr.io/triplea-game/lobby/server:latest