Browse Source

fix issues

pull/1829/head
Bernd Storath 4 months ago
parent
commit
d67a6c3781
  1. 5
      .github/workflows/deploy-development.yml
  2. 5
      .github/workflows/deploy-edge.yml
  3. 5
      .github/workflows/deploy.yml

5
.github/workflows/deploy-development.yml

@ -8,6 +8,8 @@ jobs:
name: Build Docker name: Build Docker
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository_owner == 'wg-easy' if: github.repository_owner == 'wg-easy'
permissions:
packages: write
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -51,7 +53,7 @@ jobs:
context: . context: .
platforms: ${{ matrix.platform }} platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }} 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 outputs: type=image,push-by-digest=true,name-canonical=true,push=true
cache-from: type=gha,scope=build-${{ env.PLATFORM_PAIR }} cache-from: type=gha,scope=build-${{ env.PLATFORM_PAIR }}
cache-to: type=gha,mode=min,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' if: github.repository_owner == 'wg-easy'
permissions: permissions:
packages: write packages: write
contents: read
needs: docker-build needs: docker-build
steps: steps:
- name: Download digests - name: Download digests

5
.github/workflows/deploy-edge.yml

@ -14,6 +14,8 @@ jobs:
docker-build: docker-build:
name: Build Docker name: Build Docker
if: github.repository_owner == 'wg-easy' if: github.repository_owner == 'wg-easy'
permissions:
packages: write
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -62,7 +64,7 @@ jobs:
context: . context: .
platforms: ${{ matrix.arch.platform }} platforms: ${{ matrix.arch.platform }}
labels: ${{ steps.meta.outputs.labels }} 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 outputs: type=image,push-by-digest=true,name-canonical=true,push=true
cache-from: type=gha,scope=build-${{ env.PLATFORM_PAIR }} cache-from: type=gha,scope=build-${{ env.PLATFORM_PAIR }}
cache-to: type=gha,mode=min,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' if: github.repository_owner == 'wg-easy'
permissions: permissions:
packages: write packages: write
contents: read
needs: docker-build needs: docker-build
steps: steps:
- name: Download digests - name: Download digests

5
.github/workflows/deploy.yml

@ -16,6 +16,8 @@ jobs:
if: | if: |
github.repository_owner == 'wg-easy' && github.repository_owner == 'wg-easy' &&
startsWith(github.ref, 'refs/tags/v') startsWith(github.ref, 'refs/tags/v')
permissions:
packages: write
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -59,7 +61,7 @@ jobs:
context: . context: .
platforms: ${{ matrix.platform }} platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }} 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 outputs: type=image,push-by-digest=true,name-canonical=true,push=true
cache-from: type=gha,scope=build-${{ env.PLATFORM_PAIR }} cache-from: type=gha,scope=build-${{ env.PLATFORM_PAIR }}
cache-to: type=gha,mode=min,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') startsWith(github.ref, 'refs/tags/v')
permissions: permissions:
packages: write packages: write
contents: read
needs: docker-build needs: docker-build
steps: steps:
- name: Download digests - name: Download digests

Loading…
Cancel
Save