mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-08-28 20:30:43 +00:00
chore: updated actor for login
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
This commit is contained in:
parent
76d23e22c4
commit
6d1d705fa3
6
.github/workflows/build_container.yaml
vendored
6
.github/workflows/build_container.yaml
vendored
@ -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 }}
|
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user