Skip to content

Commit

Permalink
Update publish jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Feb 21, 2025
1 parent 6edcc09 commit 765bd75
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/acme-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
uses: ./.github/workflows/acme-postgresql-test.yml

publish:
if: github.event_name == 'push' && github.ref_name == 'master'
if: github.event_name == 'push' && github.ref_name == 'v11.6'
name: Publishing ACME images
needs: build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -175,5 +175,5 @@ jobs:

- name: Publish pki-acme image
run: |
docker tag pki-acme ${{ vars.REGISTRY }}/$NAMESPACE/pki-acme:latest
docker push ${{ vars.REGISTRY }}/$NAMESPACE/pki-acme:latest
docker tag pki-acme ${{ vars.REGISTRY }}/$NAMESPACE/pki-acme:11.6
docker push ${{ vars.REGISTRY }}/$NAMESPACE/pki-acme:11.6
22 changes: 11 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish PKI
on:
push:
branches:
- master
- v11.6

env:
NAMESPACE: ${{ vars.REGISTRY_NAMESPACE || github.repository_owner }}
Expand Down Expand Up @@ -101,25 +101,25 @@ jobs:

- name: Publish pki-dist image
run: |
docker tag pki-dist ${{ vars.REGISTRY }}/$NAMESPACE/pki-dist:latest
docker push ${{ vars.REGISTRY }}/$NAMESPACE/pki-dist:latest
docker tag pki-dist ${{ vars.REGISTRY }}/$NAMESPACE/pki-dist:11.6
docker push ${{ vars.REGISTRY }}/$NAMESPACE/pki-dist:11.6
- name: Publish pki-server image
run: |
docker tag pki-server ${{ vars.REGISTRY }}/$NAMESPACE/pki-server:latest
docker push ${{ vars.REGISTRY }}/$NAMESPACE/pki-server:latest
docker tag pki-server ${{ vars.REGISTRY }}/$NAMESPACE/pki-server:11.6
docker push ${{ vars.REGISTRY }}/$NAMESPACE/pki-server:11.6
- name: Publish pki-ca image
run: |
docker tag pki-ca ${{ vars.REGISTRY }}/$NAMESPACE/pki-ca:latest
docker push ${{ vars.REGISTRY }}/$NAMESPACE/pki-ca:latest
docker tag pki-ca ${{ vars.REGISTRY }}/$NAMESPACE/pki-ca:11.6
docker push ${{ vars.REGISTRY }}/$NAMESPACE/pki-ca:11.6
- name: Publish pki-kra image
run: |
docker tag pki-kra ${{ vars.REGISTRY }}/$NAMESPACE/pki-kra:latest
docker push ${{ vars.REGISTRY }}/$NAMESPACE/pki-kra:latest
docker tag pki-kra ${{ vars.REGISTRY }}/$NAMESPACE/pki-kra:11.6
docker push ${{ vars.REGISTRY }}/$NAMESPACE/pki-kra:11.6
- name: Publish pki-ocsp image
run: |
docker tag pki-ocsp ${{ vars.REGISTRY }}/$NAMESPACE/pki-ocsp:latest
docker push ${{ vars.REGISTRY }}/$NAMESPACE/pki-ocsp:latest
docker tag pki-ocsp ${{ vars.REGISTRY }}/$NAMESPACE/pki-ocsp:11.6
docker push ${{ vars.REGISTRY }}/$NAMESPACE/pki-ocsp:11.6

0 comments on commit 765bd75

Please sign in to comment.