Skip to content

Commit

Permalink
add support for custom tag in gitops template (#266)
Browse files Browse the repository at this point in the history
* add support for custom tag in gitops template

* update readme, bump version

* Update README.md

Co-authored-by: Falk Puschner <falk.puschner@staffbase.com>

---------

Co-authored-by: Falk Puschner <falk.puschner@staffbase.com>
  • Loading branch information
askvinni and flaxel authored Jul 1, 2024
1 parent b7f94b7 commit 6e131e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/template_gitops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ jobs:
docker-file: <path-to-Dockerfile>
# optional: name of the docker image, default: private/<repository_name>
docker-image: <your-image>
# optional: custom tag for the productive docker image which is preferred over the tag generated by the workflow
docker-custom-tag: <your-tag>
# optional: organization of the gitops repository, default: github.repository_owner
gitops-organization: <your-organization>
# optional: repository where to update the files, default: mops
Expand Down

0 comments on commit 6e131e9

Please sign in to comment.