Skip to content

Commit

Permalink
workflow: pin docker image version to release version
Browse files Browse the repository at this point in the history
pin docker image version to release version.

Signed-off-by: ChengyuZhu6 <[email protected]>
  • Loading branch information
ChengyuZhu6 committed May 16, 2024
1 parent e9d1bb7 commit 4ef26e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ jobs:
build-linker: static
steps:
- uses: actions/checkout@v3
- name: Pin docker image version to release version
run: |
sed -i "s|ghcr.io/containerd/nydus-snapshotter:latest|ghcr.io/containerd/nydus-snapshotter:${{ github.ref_name }}|" misc/snapshotter/base/nydus-snapshotter.yaml
- name: Commit changes
run: |
git add .
git commit -m "Update docker image version for release"
git push
- uses: actions/setup-go@v3
with:
go-version: "1.19.6"
Expand Down
1 change: 1 addition & 0 deletions misc/snapshotter/base/nydus-snapshotter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ spec:
hostPID: true
containers:
- name: nydus-snapshotter
# The image tag will be updated to reflect the release version in GitHub Release action.
image: "ghcr.io/containerd/nydus-snapshotter:latest"
imagePullPolicy: Always
env:
Expand Down

0 comments on commit 4ef26e3

Please sign in to comment.