From 6d1d705fa3ef7da4b6fe14943115c1cedcda8f99 Mon Sep 17 00:00:00 2001 From: Alex Jones Date: Mon, 7 Apr 2025 19:02:08 +0100 Subject: [PATCH] chore: updated actor for login Signed-off-by: Alex Jones --- .github/workflows/build_container.yaml | 6 +++--- .github/workflows/release.yaml | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_container.yaml b/.github/workflows/build_container.yaml index 84fe627..af58e57 100644 --- a/.github/workflows/build_container.yaml +++ b/.github/workflows/build_container.yaml @@ -104,7 +104,7 @@ jobs: - name: Build and push the image id: build - # if: ${{ needs.prepare_ci_run.outputs.NON_FORKED_AND_NON_ROBOT_RUN == 'true' }} + if: ${{ needs.prepare_ci_run.outputs.NON_FORKED_AND_NON_ROBOT_RUN == 'true' }} uses: docker/build-push-action@v6 with: context: . @@ -116,7 +116,7 @@ jobs: RELEASE_VERSION=dev-${{ env.DATETIME }} BUILD_TIME=${{ env.BUILD_TIME }} tags: | - ${{ env.REGISTRY_IMAGE }}:${{ needs.prepare_ci_run.outputs.DATETIME }} + ${{ env.REGISTRY_IMAGE }}:${{ needs.prepare_ci_run.outputs.DATETIME }}-${{ matrix.arch }} labels: ${{ steps.meta.outputs.labels }} secrets: | GIT_AUTH_TOKEN=${{ secrets.K8SGPT_BOT_SECRET }} @@ -153,5 +153,5 @@ jobs: - name: Create manifest list and push run: | docker manifest create ${{ env.REGISTRY_IMAGE }}:${{ needs.prepare_ci_run.outputs.DATETIME }} \ - ${{ env.REGISTRY_IMAGE }}:${{ needs.prepare_ci_run.outputs.DATETIME }} + ${{ env.REGISTRY_IMAGE }}:${{ needs.prepare_ci_run.outputs.DATETIME }}-amd64 docker manifest push ${{ env.REGISTRY_IMAGE }}:${{ needs.prepare_ci_run.outputs.DATETIME }} \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6ce1ae6..b2fa65a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -115,6 +115,8 @@ jobs: tags: | ${{ env.IMAGE_TAG }} builder: ${{ steps.buildx.outputs.name }} + secrets: | + GIT_AUTH_TOKEN=${{ secrets.K8SGPT_BOT_SECRET }} push: true cache-from: type=gha,scope=${{ github.ref_name }}-${{ env.IMAGE_TAG }} cache-to: type=gha,scope=${{ github.ref_name }}-${{ env.IMAGE_TAG }}