diff --git a/.github/workflows/tags.yaml b/.github/workflows/tags.yaml index 1dfd81216..84f6474fa 100644 --- a/.github/workflows/tags.yaml +++ b/.github/workflows/tags.yaml @@ -34,6 +34,7 @@ jobs: - name: Set the from image tag run: echo "FROM_TAG=sha-${GITHUB_SHA::8}" >> $GITHUB_ENV + # This is for tink server. quay.io/tinkerbell/tink - name: Copy the image using skopeo run: skopeo copy --all --dest-creds="${DST_REG_USER}":"${DST_REG_PASS}" docker://"${SRC_IMAGE}" docker://"${DST_IMAGE}" env: @@ -42,6 +43,30 @@ jobs: DST_REG_USER: ${{ secrets.QUAY_USERNAME }} DST_REG_PASS: ${{ secrets.QUAY_PASSWORD }} + - name: Copy the tink-controller image using skopeo + run: skopeo copy --all --dest-creds="${DST_REG_USER}":"${DST_REG_PASS}" docker://"${SRC_IMAGE}" docker://"${DST_IMAGE}" + env: + SRC_IMAGE: ${{ env.REGISTRY }}/tink-controller:${{ env.FROM_TAG }} + DST_IMAGE: ${{ env.REGISTRY }}/tink-controller:${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} + DST_REG_USER: ${{ secrets.QUAY_USERNAME }} + DST_REG_PASS: ${{ secrets.QUAY_PASSWORD }} + + - name: Copy the tink-worker image using skopeo + run: skopeo copy --all --dest-creds="${DST_REG_USER}":"${DST_REG_PASS}" docker://"${SRC_IMAGE}" docker://"${DST_IMAGE}" + env: + SRC_IMAGE: ${{ env.REGISTRY }}/tink-worker:${{ env.FROM_TAG }} + DST_IMAGE: ${{ env.REGISTRY }}/tink-worker:${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} + DST_REG_USER: ${{ secrets.QUAY_USERNAME }} + DST_REG_PASS: ${{ secrets.QUAY_PASSWORD }} + + - name: Copy the tink-cli image using skopeo + run: skopeo copy --all --dest-creds="${DST_REG_USER}":"${DST_REG_PASS}" docker://"${SRC_IMAGE}" docker://"${DST_IMAGE}" + env: + SRC_IMAGE: ${{ env.REGISTRY }}/tink-cli:${{ env.FROM_TAG }} + DST_IMAGE: ${{ env.REGISTRY }}/tink-cli:${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} + DST_REG_USER: ${{ secrets.QUAY_USERNAME }} + DST_REG_PASS: ${{ secrets.QUAY_PASSWORD }} + - name: Create Release id: create_release uses: actions/create-release@v1