Skip to content

Commit

Permalink
cronjob pipeline pt3
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilevos committed Sep 7, 2023
1 parent 88a9720 commit a16afc9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/docker_cronjob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,27 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push mainnet cronjob
if: ${{ github.ref == 'mainnet' }}
if: ${{ github.ref == 'refs/heads/mainnet' }}
id: docker-build-delegator-votes-cronjob-mainnet
uses: docker/build-push-action@v2
with:
context: ./cronjob/
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
# Only push if on main branch
push: ${{ github.ref == 'refs/heads/mainnet' }}
push: true
tags: |
ghcr.io/marigold-dev/tzvote-cronjob:${{ steps.vars.outputs.date }}-${{ steps.vars.outputs.sha_short }}-mainnet
- name: Build and push ghostnet cronjob
if: ${{ github.ref == 'ghostnet' }}
if: ${{ github.ref == 'refs/heads/ghostnet' }}
id: docker-build-delegator-votes-cronjob-ghostnet
uses: docker/build-push-action@v2
with:
context: ./cronjob/
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
# Only push if on main branch
push: ${{ github.ref == 'refs/heads/ghostnet' }}
push: true
tags: |
ghcr.io/marigold-dev/tzvote-cronjob:${{ steps.vars.outputs.date }}-${{ steps.vars.outputs.sha_short }}-ghostnet

0 comments on commit a16afc9

Please sign in to comment.