chore: updated actor for login

Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
This commit is contained in:
Alex Jones 2025-04-07 19:02:08 +01:00
parent 76d23e22c4
commit 6d1d705fa3
2 changed files with 5 additions and 3 deletions

View File

@ -104,7 +104,7 @@ jobs:
- name: Build and push the image - name: Build and push the image
id: build 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 uses: docker/build-push-action@v6
with: with:
context: . context: .
@ -116,7 +116,7 @@ jobs:
RELEASE_VERSION=dev-${{ env.DATETIME }} RELEASE_VERSION=dev-${{ env.DATETIME }}
BUILD_TIME=${{ env.BUILD_TIME }} BUILD_TIME=${{ env.BUILD_TIME }}
tags: | 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 }} labels: ${{ steps.meta.outputs.labels }}
secrets: | secrets: |
GIT_AUTH_TOKEN=${{ secrets.K8SGPT_BOT_SECRET }} GIT_AUTH_TOKEN=${{ secrets.K8SGPT_BOT_SECRET }}
@ -153,5 +153,5 @@ jobs:
- name: Create manifest list and push - name: Create manifest list and push
run: | run: |
docker manifest create ${{ env.REGISTRY_IMAGE }}:${{ needs.prepare_ci_run.outputs.DATETIME }} \ 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 }} docker manifest push ${{ env.REGISTRY_IMAGE }}:${{ needs.prepare_ci_run.outputs.DATETIME }}

View File

@ -115,6 +115,8 @@ jobs:
tags: | tags: |
${{ env.IMAGE_TAG }} ${{ env.IMAGE_TAG }}
builder: ${{ steps.buildx.outputs.name }} builder: ${{ steps.buildx.outputs.name }}
secrets: |
GIT_AUTH_TOKEN=${{ secrets.K8SGPT_BOT_SECRET }}
push: true push: true
cache-from: type=gha,scope=${{ github.ref_name }}-${{ env.IMAGE_TAG }} cache-from: type=gha,scope=${{ github.ref_name }}-${{ env.IMAGE_TAG }}
cache-to: type=gha,scope=${{ github.ref_name }}-${{ env.IMAGE_TAG }} cache-to: type=gha,scope=${{ github.ref_name }}-${{ env.IMAGE_TAG }}