-
Notifications
You must be signed in to change notification settings - Fork 140
Configuring Publishing Job
Endi S. Dewata edited this page Feb 21, 2025
·
3 revisions
Each project has a GitHub job that will automatically publish Maven artifacts to the Maven repository and container images to Quay.io.
In the master
branch the images will be published with latest
tag.
In other branches (e.g. v5.6
) the publishing job needs to be configured to publish with a tag matching the branch name (e.g. 5.6
).
-
REGISTRY_NAMESPACE
: Quay.io namespace (default: GitHub username) -
REGISTRY_USERNAME
: Quay.io username -
REGISTRY_PASSWORD
: Quay.io password
on: push: branches: - master ... - name: Publish jss-dist image run: | docker tag jss-dist ${{ vars.REGISTRY }}/$NAMESPACE/jss-dist:latest docker push ${{ vars.REGISTRY }}/$NAMESPACE/jss-dist:latest
on: push: branches: - master ... - name: Publish LDAP SDK image run: | docker load --input ldapjdk-images.tar docker tag ldapjdk-dist ${{ vars.REGISTRY }}/$NAMESPACE/ldapjdk-dist:latest docker push ${{ vars.REGISTRY }}/$NAMESPACE/ldapjdk-dist:latest
on: push: branches: - master ... - name: Publish pki-dist image run: | docker tag pki-dist ${{ vars.REGISTRY }}/$NAMESPACE/pki-dist:latest docker push ${{ vars.REGISTRY }}/$NAMESPACE/pki-dist:latest - name: Publish pki-server image run: | docker tag pki-server ${{ vars.REGISTRY }}/$NAMESPACE/pki-server:latest docker push ${{ vars.REGISTRY }}/$NAMESPACE/pki-server:latest - name: Publish pki-ca image run: | docker tag pki-ca ${{ vars.REGISTRY }}/$NAMESPACE/pki-ca:latest docker push ${{ vars.REGISTRY }}/$NAMESPACE/pki-ca:latest - name: Publish pki-kra image run: | docker tag pki-kra ${{ vars.REGISTRY }}/$NAMESPACE/pki-kra:latest docker push ${{ vars.REGISTRY }}/$NAMESPACE/pki-kra:latest - name: Publish pki-ocsp image run: | docker tag pki-ocsp ${{ vars.REGISTRY }}/$NAMESPACE/pki-ocsp:latest docker push ${{ vars.REGISTRY }}/$NAMESPACE/pki-ocsp:latest
publish: if: github.event_name == 'push' && github.ref_name == 'master' ... - name: Publish pki-acme image run: | docker tag pki-acme ${{ vars.REGISTRY }}/$NAMESPACE/pki-acme:latest docker push ${{ vars.REGISTRY }}/$NAMESPACE/pki-acme:latest
Tip
|
To find a page in the Wiki, enter the keywords in search field, press Enter, then click Wikis. |