diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 097bc16..87cb13f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,6 +51,8 @@ jobs: strategy: matrix: architecture: ${{ fromJson(needs.information.outputs.architectures) }} + permissions: + packages: write with: addon-architecture: ${{ matrix.architecture }} addon-path: ${{ needs.information.outputs.target }} @@ -61,3 +63,4 @@ jobs: ghcr.io/${{ github.repository }}/${{ matrix.architecture }}:${{ needs.information.outputs.version }} ghcr.io/${{ github.repository }}/${{ matrix.architecture }}:${{ needs.information.outputs.environment }} docker-push: true + docker-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/wf-docker-build.yaml b/.github/workflows/wf-docker-build.yaml index 26cebf9..c53dd30 100644 --- a/.github/workflows/wf-docker-build.yaml +++ b/.github/workflows/wf-docker-build.yaml @@ -27,6 +27,9 @@ on: required: false type: boolean default: false + secrets: + docker-token: + required: false jobs: build: @@ -47,6 +50,13 @@ jobs: uses: docker/setup-qemu-action@v3.0.0 - name: 🏗 Set up Docker Buildx uses: docker/setup-buildx-action@v3.3.0 + - name: 🏗 Login to ghcr.io + if: ${{ inputs.docker-push }} + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.docker-token }} - name: ℹī¸ Compose build flags id: flags run: |