From 6e131e9fdbcbfd8568598d7de6a7488752dc5aa8 Mon Sep 17 00:00:00 2001 From: Vinnie <53345119+askvinni@users.noreply.github.com> Date: Mon, 1 Jul 2024 10:25:11 +0200 Subject: [PATCH] add support for custom tag in gitops template (#266) * add support for custom tag in gitops template * update readme, bump version * Update README.md Co-authored-by: Falk Puschner --------- Co-authored-by: Falk Puschner --- .github/workflows/template_gitops.yml | 6 +++++- README.md | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) 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