Skip to content

Commit cbddf89

Browse files
prashantpandeygitYour Name
authored andcommitted
ci: add commit hash tag for urunc-deploy images
Signed-off-by: prashantpandeygit <prashantpandeyiuet@gmail.com>
1 parent a0c47bc commit cbddf89

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/build-latest.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,13 @@ jobs:
211211
VAR=`docker manifest push ${{ env.REGISTRY }}/${{ github.repository }}/urunc-deploy:${{ env.TAG }} | tail -1`
212212
echo "manifest_sha=$VAR" >> "$GITHUB_OUTPUT"
213213
214+
# Also tag with commit hash on main branch
215+
if [[ "${{ github.ref }}" == "refs/heads/main" && "${{ inputs.version-tag }}" != "true" ]]; then
216+
docker buildx imagetools create -t ${{ env.REGISTRY }}/${{ github.repository }}/urunc-deploy:${{ env.SHA_SHORT }} \
217+
${{ env.REGISTRY }}/${{ github.repository }}/urunc-deploy:${{ env.TAG }}
218+
fi
219+
220+
214221
- name: Install cosign
215222
uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # main
216223

@@ -223,4 +230,4 @@ jobs:
223230
-a "repo=${{github.repository}}" \
224231
-a "workflow=${{github.workflow}}" \
225232
-a "ref=${{github.sha}}" \
226-
-a "author=Nubificus LTD"
233+
-a "author=Nubificus LTD"

docs/tutorials/How-to-urunc-on-k8s.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ kubectl get pods
9797
and artifacts required to run `urunc`, as well as reference DaemonSets, which can
9898
be utilized to install `urunc` runtime on a running Kubernetes cluster.
9999

100+
By default, the `latest` tag is used, which corresponds to the main branch. To deploy a specific version, replace `latest` with the respective commit hash (e.g., `abc1234`) in the manifest using:
101+
102+
```bash
103+
sed -i 's|ghcr.io/urunc-dev/urunc/urunc-deploy:latest|ghcr.io/urunc-dev/urunc/urunc-deploy:abc1234|' deployment/urunc-deploy/urunc-deploy/base/urunc-deploy.yaml
104+
```
105+
106+
100107
### urunc-deploy in k3s
101108

102109
To install in a k3s cluster, first we need to create the RBAC:

0 commit comments

Comments
 (0)