From 6bbb72e83bb2069550064e3a0bb83ebf333cdb3f Mon Sep 17 00:00:00 2001 From: Mohamed Chiheb Ben Jemaa Date: Wed, 29 Nov 2023 15:45:22 +0100 Subject: [PATCH] Push image --- .github/workflows/container-image.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/container-image.yaml b/.github/workflows/container-image.yaml index 5840243d..0d3c3527 100644 --- a/.github/workflows/container-image.yaml +++ b/.github/workflows/container-image.yaml @@ -14,6 +14,8 @@ on: - main - release-* +permissions: write-all + jobs: image: name: build image @@ -28,18 +30,18 @@ jobs: images: ghcr.io/ionos-cloud/cluster-api-provider-proxmox - name: Login to GitHub Container Registry - if: github.event_name != 'pull_request' +# if: github.event_name != 'pull_request' uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ secrets.BOT_USERNAME }} - password: ${{ secrets.BOT_PAT }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push Docker image uses: docker/build-push-action@v5 with: context: . - push: ${{ github.event_name != 'pull_request' }} + push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}