forked from microcumulus/ca-injector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from ZEISS/task/fix-docker-tags
fix docker tag
- Loading branch information
Showing
5 changed files
with
136 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Tag | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'main' | ||
types: | ||
- closed | ||
paths: | ||
- 'charts/ca-injector/Chart.yaml' | ||
|
||
jobs: | ||
create_tag: | ||
if: | | ||
(github.event.pull_request.merged == true) && | ||
contains(github.event.pull_request.labels.*.name, 'helm_app_version_update') | ||
runs-on: ubuntu-latest | ||
outputs: | ||
new_tag: ${{ steps.tag_version.outputs.new_tag }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Receive version | ||
run: | | ||
new_app_version=$(sed -n -e 's/^.*appVersion: //p' charts/ca-injector/Chart.yaml) | ||
echo "new_app_version=${new_app_version}" >> $GITHUB_ENV | ||
- name: create git tag | ||
id: tag_version | ||
uses: mathieudutour/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
custom_tag: ${{ env.new_app_version }} | ||
tag_prefix: '' | ||
trigger_docker_build: | ||
needs: [create_tag] | ||
uses: ./.github/workflows/docker.yml | ||
secrets: inherit | ||
with: | ||
tag: ${{ needs.create_tag.outputs.new_tag }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters