Skip to content

Commit

Permalink
chore(ci): conditional if for main/prod branch
Browse files Browse the repository at this point in the history
  • Loading branch information
heronimus committed Aug 16, 2023
1 parent 9608ee0 commit 60b02b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/backend-mage-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,21 @@ jobs:
run: |
docker image ls -a | grep starter-game-template
- name: Docker save local build images
if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main'
run: |
docker save ${{ github.event.repository.name }}-nakama:latest | gzip > /tmp/${{ github.event.repository.name }}-nakama-latest.tar.gz
docker save ${{ github.event.repository.name }}-cardinal:latest | gzip > /tmp/${{ github.event.repository.name }}-cardinal-latest.tar.gz
docker save ${{ github.event.repository.name }}-testsuite:latest | gzip > /tmp/${{ github.event.repository.name }}-testsuite-latest.tar.gz
- name: Upload local build images to temporary artifact
if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v3
with:
name: buildimage
path: /tmp/starter-game-template-*.tar.gz
images-release:
runs-on: ubuntu-latest
needs: mage-build-test
# if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main'
if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main'
defaults:
run:
shell: bash
Expand Down

0 comments on commit 60b02b4

Please sign in to comment.