Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflow: pin docker image version to release version #596

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
build-linker: static
steps:
- uses: actions/checkout@v3
- name: Check if release overlay version is updated
run: |
if ! grep -q "newTag: ${{ github.ref_name }}" "misc/snapshotter/overlays/kustomization.yaml"; then
echo "misc/snapshotter/overlays/release is not updated. Please update to the release tag ${{ github.ref_name }} before tagging the repo and creating the release."
exit 1
fi
- uses: actions/setup-go@v3
with:
go-version: "1.19.6"
Expand Down
9 changes: 9 additions & 0 deletions misc/snapshotter/overlays/release/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base

# newTag points to the latest release image and must be updated before tagging a new release
images:
- name: ghcr.io/containerd/nydus-snapshotter
newTag: v0.13.14
Loading