6262 username : ${{ secrets.DOCKERHUB_USERNAME }}
6363 password : ${{ secrets.DOCKERHUB_PUSH_TOKEN}}
6464
65+ - name : Install regctl
66+ uses : regclient/actions/regctl-installer@main
67+
6568 - name : Install Operator SDK
6669 run : |
6770 export ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac)
@@ -95,19 +98,10 @@ jobs:
9598 tag : " ${{ github.event.inputs.release_version }}"
9699 draft : true
97100
98- - name : Pull RC Splunk Operator Image
99- run : |
100- docker pull ${{ secrets.PUBLIC_ECR_REPOSITORY }}/${{ env.SPLUNK_OPERATOR_RC_IMAGE_NAME }}:${{ github.event.inputs.release_version }}-RC
101-
102101 - name : Promote RC Image to Release
103102 run : |
104- docker tag ${{ secrets.PUBLIC_ECR_REPOSITORY }}/${{ env.SPLUNK_OPERATOR_RC_IMAGE_NAME }}:${{ github.event.inputs.release_version }}-RC splunk/splunk-operator:${{ github.event.inputs.operator_image_tag }}
105- docker tag splunk/splunk-operator:${{ github.event.inputs.operator_image_tag }} splunk/splunk-operator:latest
106-
107- - name : Push Release Image
108- run : |
109- docker push splunk/splunk-operator:${{ github.event.inputs.operator_image_tag }}
110- docker push splunk/splunk-operator:latest
103+ regctl image copy ${{ secrets.PUBLIC_ECR_REPOSITORY }}/${{ env.SPLUNK_OPERATOR_RC_IMAGE_NAME }}:${{ github.event.inputs.release_version }}-RC splunk/splunk-operator:${{ github.event.inputs.operator_image_tag }}
104+ regctl image copy ${{ secrets.PUBLIC_ECR_REPOSITORY }}/${{ env.SPLUNK_OPERATOR_RC_IMAGE_NAME }}:${{ github.event.inputs.release_version }}-RC splunk/splunk-operator:latest
111105
112106 - name : Sign Splunk Operator image with a key
113107 run : |
@@ -122,17 +116,9 @@ jobs:
122116 env :
123117 COSIGN_PUBLIC_KEY : ${{ secrets.COSIGN_PUBLIC_KEY }}
124118
125- - name : Pull Distroless RC Splunk Operator Image
126- run : |
127- docker pull ${{ secrets.PUBLIC_ECR_REPOSITORY }}/${{ env.SPLUNK_OPERATOR_RC_IMAGE_NAME }}:${{ github.event.inputs.release_version }}-RC-distroless
128-
129119 - name : Promote Distroless RC Image to Release
130120 run : |
131- docker tag ${{ secrets.PUBLIC_ECR_REPOSITORY }}/${{ env.SPLUNK_OPERATOR_RC_IMAGE_NAME }}:${{ github.event.inputs.release_version }}-RC-distroless splunk/splunk-operator:${{ github.event.inputs.operator_image_tag }}-distroless
132-
133- - name : Push Distroless Release Image
134- run : |
135- docker push splunk/splunk-operator:${{ github.event.inputs.operator_image_tag }}-distroless
121+ regctl image copy ${{ secrets.PUBLIC_ECR_REPOSITORY }}/${{ env.SPLUNK_OPERATOR_RC_IMAGE_NAME }}:${{ github.event.inputs.release_version }}-RC-distroless splunk/splunk-operator:${{ github.event.inputs.operator_image_tag }}-distroless
136122
137123 - name : Sign Distroless Splunk Operator image with a key
138124 run : |
0 commit comments