Skip to content

chore(deps): update defenseunicorns/uds-common action to v0.4.2 (#61) #7

chore(deps): update defenseunicorns/uds-common action to v0.4.2 (#61)

chore(deps): update defenseunicorns/uds-common action to v0.4.2 (#61) #7

name: Publish k3s image
on:
push:
branches:
- main
paths:
- docker/**
- .github/workflows/publish-image.yaml
jobs:
publish-k3s-image:
runs-on: ubuntu-latest
strategy:
matrix:
version: ["v1.27.11-k3s1", "v1.28.7-k3s1", "v1.29.2-k3s1"]
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
- name: Setup UDS
if: always()
uses: defenseunicorns/uds-common/.github/actions/setup@b2e8b25930c953ef893e7c787fe350f0d8679ee2 # v0.4.2
with:
username: ${{secrets.IRON_BANK_ROBOT_USERNAME}}
password: ${{secrets.IRON_BANK_ROBOT_PASSWORD}}
- name: Login to GHCR
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3
with:
registry: ghcr.io
username: dummy
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish the custom k3s image
run: uds run publish-image --set VERSION=${{matrix.version}}