Skip to content

Commit

Permalink
add support for custom tag in gitops template
Browse files Browse the repository at this point in the history
  • Loading branch information
askvinni committed Jun 28, 2024
1 parent ebf5a7d commit 36711d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .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 @@ -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 docker image, default: main-<COMMIT_SHA>, dev-<COMMIT_SHA>, <GITHUB_TAG>
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 36711d3

Please sign in to comment.