diff --git a/.github/workflows/template_gitops.yml b/.github/workflows/template_gitops.yml index 574eeca..40b92d9 100644 --- a/.github/workflows/template_gitops.yml +++ b/.github/workflows/template_gitops.yml @@ -29,6 +29,9 @@ on: required: false type: string default: sb-images/${{ github.event.repository.name }} + docker-custom-tag: + required: false + type: string gitops-dev: required: false type: string @@ -101,7 +104,7 @@ jobs: owner: ${{inputs.gitops-organization }} - name: GitOps (build, push and deploy a new Docker image) - uses: Staffbase/gitops-github-action@v5.5 + uses: Staffbase/gitops-github-action@v5.6 with: docker-registry: ${{ inputs.docker-registry }} docker-username: ${{ secrets.docker-username }} @@ -116,6 +119,7 @@ jobs: docker-disable-retagging: ${{ inputs.docker-disable-retagging }} docker-file: ${{ inputs.docker-file }} docker-image: ${{ inputs.docker-image }} + docker-custom-tag: ${{ inputs.docker-custom-tag }} gitops-organization: ${{ inputs.gitops-organization }} gitops-repository: ${{ inputs.gitops-repository }} gitops-user: ${{ inputs.gitops-user }} diff --git a/README.md b/README.md index 8a3af7e..66a7270 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,8 @@ jobs: docker-file: # optional: name of the docker image, default: private/ docker-image: + # optional: custom tag for the productive docker image which is preferred over the tag generated by the workflow + docker-custom-tag: # optional: organization of the gitops repository, default: github.repository_owner gitops-organization: # optional: repository where to update the files, default: mops