From deb25c2686c442a0b1e1650bcf162e142dea63be Mon Sep 17 00:00:00 2001 From: wojciechsromek Date: Tue, 20 Aug 2024 08:09:04 +0200 Subject: [PATCH] fix build --- .github/workflows/build-and-push.yaml | 3 -- .../debug-build-and-push-branch.yaml | 47 +++++++++++++++++++ 2 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/debug-build-and-push-branch.yaml diff --git a/.github/workflows/build-and-push.yaml b/.github/workflows/build-and-push.yaml index e20da4006..54cd3cb73 100644 --- a/.github/workflows/build-and-push.yaml +++ b/.github/workflows/build-and-push.yaml @@ -1,9 +1,6 @@ name: Build and push docker image on: - push: - branches: - - "POP-1768-retrieve-keys-from-remote-storage" release: types: - 'published' diff --git a/.github/workflows/debug-build-and-push-branch.yaml b/.github/workflows/debug-build-and-push-branch.yaml new file mode 100644 index 000000000..fdcd6e0a7 --- /dev/null +++ b/.github/workflows/debug-build-and-push-branch.yaml @@ -0,0 +1,47 @@ +name: Debug Build and push docker image for the keys and sqs/s3 + +on: + push: + branches: + - "POP-1768-retrieve-keys-from-remote-storage" + +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + +jobs: + docker: + runs-on: + labels: ubuntu-22.04-64core + permissions: + packages: write + contents: read + attestations: write + id-token: write + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and Push + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: | + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} + platforms: linux/amd64 + cache-from: type=gha + cache-to: type=gha,mode=max