-
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.
feat(ci): bump release image version after build
Signed-off-by: iverly <[email protected]>
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 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 |
---|---|---|
|
@@ -78,3 +78,27 @@ jobs: | |
- name: Sign the images with GitHub OIDC Token | ||
run: | | ||
cosign sign --yes ${{ steps.apko.outputs.digest }} | ||
bump-version: | ||
runs-on: ubuntu-latest | ||
needs: build-and-push | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Set outputs | ||
id: vars | ||
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
|
||
- name: Bump version | ||
run: | | ||
sed -i 's|image: harbor.apko.do-2021.fr/do4-2022/openstack-k0s-apko/hello-world:[^ ]*|image: harbor.apko.do-2021.fr/do4-2022/openstack-k0s-apko/hello-world:${{ steps.vars.outputs.sha_short }}|' apps/hello-world/manifests/deployment.yaml | ||
- name: Commit version bump | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: "build: bump release image to ${{ steps.vars.outputs.sha_short }}" | ||
commit_options: "-a --no-verify --signoff" | ||
commit_author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> |