From 52fd0dad3f6ac0d7e908a823a7d48aa4231ebbb4 Mon Sep 17 00:00:00 2001 From: Jimisola Laursen Date: Mon, 5 Aug 2024 02:08:01 +0200 Subject: [PATCH] ci: Debugging --- .github/workflows/build.yml | 17 ++++------------- .github/workflows/publish-containers.yml | 2 ++ 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7b5858b..1cce450 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,14 +5,13 @@ on: push: branches: main pull_request: - + env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} jobs: build: - runs-on: ubuntu-latest permissions: contents: read @@ -31,7 +30,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | type=schedule type=ref,event=branch @@ -39,7 +38,7 @@ jobs: type=semver,pattern={{version}} type=sha env: - DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index + DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -47,14 +46,6 @@ jobs: - name: Setup Docker buildx uses: docker/setup-buildx-action@v3 - # login to ghcr only when tagged with "v*" - # - name: Login to image registry ${{ env.REGISTRY }} - # uses: docker/login-action@v3 - # with: - # registry: ${{ env.REGISTRY }} - # username: ${{ github.actor }} - # password: ${{ secrets.GITHUB_TOKEN }} - # Build image with Buildx (don't push) - name: Build image id: build-and-push @@ -69,4 +60,4 @@ jobs: provenance: mode=max sbom: true outputs: | - type=image,name=target \ No newline at end of file + type=image,name=target diff --git a/.github/workflows/publish-containers.yml b/.github/workflows/publish-containers.yml index 2a6bbb3..0833be5 100644 --- a/.github/workflows/publish-containers.yml +++ b/.github/workflows/publish-containers.yml @@ -102,6 +102,8 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + with: + buildkitd-flags: --debug - name: Docker meta id: meta