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

fix: added docker push permission #28

Merged
merged 1 commit into from
Jun 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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