From d67a6c3781e95b7b993e674de786fa939eb66c63 Mon Sep 17 00:00:00 2001 From: Bernd Storath <999999bst@gmail.com> Date: Tue, 22 Apr 2025 13:27:57 +0200 Subject: [PATCH] fix issues --- .github/workflows/deploy-development.yml | 5 +++-- .github/workflows/deploy-edge.yml | 5 +++-- .github/workflows/deploy.yml | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-development.yml b/.github/workflows/deploy-development.yml index 9e77fc42..7dc130b7 100644 --- a/.github/workflows/deploy-development.yml +++ b/.github/workflows/deploy-development.yml @@ -8,6 +8,8 @@ jobs: name: Build Docker runs-on: ubuntu-latest if: github.repository_owner == 'wg-easy' + permissions: + packages: write strategy: fail-fast: false matrix: @@ -51,7 +53,7 @@ jobs: context: . platforms: ${{ matrix.platform }} labels: ${{ steps.meta.outputs.labels }} - tags: ${{ steps.meta.outputs.tags }} + tags: ghcr.io/wg-easy/wg-easy outputs: type=image,push-by-digest=true,name-canonical=true,push=true cache-from: type=gha,scope=build-${{ env.PLATFORM_PAIR }} cache-to: type=gha,mode=min,scope=build-${{ env.PLATFORM_PAIR }} @@ -76,7 +78,6 @@ jobs: if: github.repository_owner == 'wg-easy' permissions: packages: write - contents: read needs: docker-build steps: - name: Download digests diff --git a/.github/workflows/deploy-edge.yml b/.github/workflows/deploy-edge.yml index d6821af6..499cacf8 100644 --- a/.github/workflows/deploy-edge.yml +++ b/.github/workflows/deploy-edge.yml @@ -14,6 +14,8 @@ jobs: docker-build: name: Build Docker if: github.repository_owner == 'wg-easy' + permissions: + packages: write strategy: fail-fast: false matrix: @@ -62,7 +64,7 @@ jobs: context: . platforms: ${{ matrix.arch.platform }} labels: ${{ steps.meta.outputs.labels }} - tags: ${{ steps.meta.outputs.tags }} + tags: ghcr.io/wg-easy/wg-easy outputs: type=image,push-by-digest=true,name-canonical=true,push=true cache-from: type=gha,scope=build-${{ env.PLATFORM_PAIR }} cache-to: type=gha,mode=min,scope=build-${{ env.PLATFORM_PAIR }} @@ -87,7 +89,6 @@ jobs: if: github.repository_owner == 'wg-easy' permissions: packages: write - contents: read needs: docker-build steps: - name: Download digests diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6d8d510d..adbe8cf3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,6 +16,8 @@ jobs: if: | github.repository_owner == 'wg-easy' && startsWith(github.ref, 'refs/tags/v') + permissions: + packages: write strategy: fail-fast: false matrix: @@ -59,7 +61,7 @@ jobs: context: . platforms: ${{ matrix.platform }} labels: ${{ steps.meta.outputs.labels }} - tags: ${{ steps.meta.outputs.tags }} + tags: ghcr.io/wg-easy/wg-easy outputs: type=image,push-by-digest=true,name-canonical=true,push=true cache-from: type=gha,scope=build-${{ env.PLATFORM_PAIR }} cache-to: type=gha,mode=min,scope=build-${{ env.PLATFORM_PAIR }} @@ -86,7 +88,6 @@ jobs: startsWith(github.ref, 'refs/tags/v') permissions: packages: write - contents: read needs: docker-build steps: - name: Download digests