Skip to content

fix: only push images if ref is master #100

fix: only push images if ref is master

fix: only push images if ref is master #100

Workflow file for this run

---
name: Build PostgreSQL images
on:
schedule:
- cron: "2 2 * * SUN"
push:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- uses: camptocamp/initialise-gopass-summon-action@v2
with:
ci-gpg-private-key: ${{secrets.CI_GPG_PRIVATE_KEY}}
github-gopass-ci-token: ${{secrets.GOPASS_CI_GITHUB_TOKEN}}
patterns: docker
- name: "Build images"
env:
PUSH_DOCKER_HUB: false
PUSH_GHCR: false
run: |
make all
- name: "Push images"
if: ${{ github.ref == 'refs/heads/master' }}
env:
PUSH_DOCKER_HUB: true
PUSH_GHCR: true
run: |
make all