Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
fix: added docker push permission (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
t0bst4r authored Jun 9, 2024
1 parent 8c6bf76 commit 9a491d4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
10 changes: 10 additions & 0 deletions .github/workflows/wf-docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ on:
required: false
type: boolean
default: false
secrets:
docker-token:
required: false

jobs:
build:
Expand All @@ -47,6 +50,13 @@ jobs:
uses: docker/[email protected]
- name: 🏗 Set up Docker Buildx
uses: docker/[email protected]
- 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: |
Expand Down

0 comments on commit 9a491d4

Please sign in to comment.