Skip to content
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
9 changes: 9 additions & 0 deletions .github/workflows/build-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ jobs:
VAR=`docker manifest push ${{ env.REGISTRY }}/${{ github.repository }}/urunc-deploy:${{ env.TAG }} | tail -1`
echo "manifest_sha=$VAR" >> "$GITHUB_OUTPUT"

# Also tag with commit hash on main branch
if [[ "${{ github.ref }}" == "refs/heads/main" && "${{ inputs.version-tag }}" != "true" ]]; then
docker manifest create ${{ env.REGISTRY }}/${{ github.repository }}/urunc-deploy:${{ env.SHA_SHORT }} $amend_command
docker manifest push ${{ env.REGISTRY }}/${{ github.repository }}/urunc-deploy:${{ env.SHA_SHORT }}
fi


- name: Install cosign
uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # main

Expand All @@ -224,3 +231,5 @@ jobs:
-a "workflow=${{github.workflow}}" \
-a "ref=${{github.sha}}" \
-a "author=Nubificus LTD"


15 changes: 15 additions & 0 deletions docs/tutorials/How-to-urunc-on-k8s.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,21 @@ kubectl get pods
and artifacts required to run `urunc`, as well as reference DaemonSets, which can
be utilized to install `urunc` runtime on a running Kubernetes cluster.

### Image Versioning

When changes are pushed to the main branch, the `urunc-deploy` container image is
tagged with both `latest` and the commit hash (e.g., `abc1234`). To deploy a specific
version instead of `latest`, update the image tag in the manifest before applying:

```bash
# Update the image tag to a specific commit hash
sed -i 's/:latest/:abc1234/' deployment/urunc-deploy/urunc-deploy/base/urunc-deploy.yaml

# Apply the manifest
kubectl apply -f deployment/urunc-deploy/urunc-deploy/base/urunc-deploy.yaml
```


### urunc-deploy in k3s

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