File tree Expand file tree Collapse file tree 3 files changed +34
-4
lines changed Expand file tree Collapse file tree 3 files changed +34
-4
lines changed Original file line number Diff line number Diff line change 1- name : Branch head Prerelease Images
1+ name : Branch head Prerelease Images
22
33on :
44 push :
3737 # write is needed for:
3838 # - OIDC for cosign's use in ecm-distro-tools/publish-image.
3939 # - Read vault secrets in rancher-eio/read-vault-secrets.
40+ # - Publish image to ghcr.io
4041 id-token : write
4142
4243 runs-on : ubuntu-latest
7071 - name : Re-tag the static head image using the rolling tag
7172 env :
7273 FULL_IMAGE_URL : ${{ env.PUBLIC_REGISTRY }}/${{ vars.REPO || github.repository_owner }}/${{ vars.IMAGE_NAME || 'kuberlr-kubectl' }}
74+ STATIC_TAG : ${{ needs.prebuild-env.outputs.branch_static_tag }}
75+ LATEST_TAG : ${{ needs.prebuild-env.outputs.branch_tag }}
7376 run : |
7477 VERSION="1.2.0"
7578 curl -LO "https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_linux_amd64.tar.gz"
7679 mkdir -p oras-install/
7780 tar -zxf oras_${VERSION}_*.tar.gz -C oras-install/
78- oras-install/oras copy ${{ env.FULL_IMAGE_URL }}:${{ needs.prebuild-env.outputs.branch_static_tag }} ${{ env.FULL_IMAGE_URL }}:${{ needs.prebuild-env.outputs.branch_tag }}
81+ oras-install/oras copy ${{ env.FULL_IMAGE_URL }}:${{ env.STATIC_TAG }} ${{ env.FULL_IMAGE_URL }}:${{ env.LATEST_TAG }}
82+
83+ - name : Re-tag the image tags to ghcr.io/${{ github.repository_owner }}
84+ env :
85+ FULL_IMAGE_URL : ${{ env.PUBLIC_REGISTRY }}/${{ vars.REPO || github.repository_owner }}/${{ vars.IMAGE_NAME || 'kuberlr-kubectl' }}
86+ STATIC_TAG : ${{ needs.prebuild-env.outputs.branch_static_tag }}
87+ LATEST_TAG : ${{ needs.prebuild-env.outputs.branch_tag }}
88+ FULL_IMAGE_GHCR_URL : ghcr.io/${{ github.repository_owner }}/${{ vars.IMAGE_NAME || 'kuberlr-kubectl' }}
89+ run : |
90+ VERSION="1.2.0"
91+ curl -LO "https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_linux_amd64.tar.gz"
92+ mkdir -p oras-install/
93+ tar -zxf oras_${VERSION}_*.tar.gz -C oras-install/
94+ oras-install/oras copy ${{ env.FULL_IMAGE_URL }}:${{ env.STATIC_TAG }} ${{ env.FULL_IMAGE_GHCR_URL }}:${{ env.STATIC_TAG }},${{ env.LATEST_TAG }}
Original file line number Diff line number Diff line change 5656 public-username : ${{ env.DOCKER_USERNAME || vars.DOCKER_USERNAME || github.repository_owner }}
5757 public-password : ${{ env.DOCKER_PASSWORD || secrets.DOCKER_PASSWORD }}
5858
59- push-to-prime : false
59+ push-to-prime : false
60+
61+ - name : Re-tag the image to ghcr.io/${{ github.repository_owner }}
62+ env :
63+ FULL_IMAGE_URL : ${{ env.PUBLIC_REGISTRY }}/${{ vars.REPO || github.repository_owner }}/${{ vars.IMAGE_NAME || 'kuberlr-kubectl' }}
64+ FULL_IMAGE_GHCR_URL : ghcr.io/${{ github.repository_owner }}/${{ vars.IMAGE_NAME || 'kuberlr-kubectl' }}
65+ run : |
66+ VERSION="1.2.0"
67+ curl -LO "https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_linux_amd64.tar.gz"
68+ mkdir -p oras-install/
69+ tar -zxf oras_${VERSION}_*.tar.gz -C oras-install/
70+ oras-install/oras copy ${{ env.FULL_IMAGE_URL }}:${{ github.ref_name }} ${{ env.FULL_IMAGE_GHCR_URL }}:${{ github.ref_name }}
Original file line number Diff line number Diff line change 11# rancher/kuberlr-kubectl
22A simple way to invoke the correct [ kubectl] ( https://github.com/rancher/kubectl ) version on a Rancher managed cluster using [ kuberlr] ( https://github.com/flavio/kuberlr ) .
33
4- Images found at: https://hub.docker.com/r/rancher/kuberlr-kubectl
4+ Images found at:
5+
6+ - https://hub.docker.com/r/rancher/kuberlr-kubectl
7+ - https://github.com/rancher/kuberlr-kubectl/pkgs/container/kuberlr-kubectl
58
69## Details
710This repo produces a Rancher specific version of the ` flavio/kuberlr ` image.
You can’t perform that action at this time.
0 commit comments