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 committed Jun 9, 2024
1 parent 8c6bf76 commit eb2cd44
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ jobs:
with:
addon-path: "${{ needs.information.outputs.target }}"
yamllint-config: ".yamllint.yaml"
secrets:
token: ${{ secrets.GITHUB_TOKEN }}

build:
name: 🚀 Build
Expand Down
4 changes: 4 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,5 @@ jobs:
ghcr.io/${{ github.repository }}/${{ matrix.architecture }}:${{ needs.information.outputs.version }}
ghcr.io/${{ github.repository }}/${{ matrix.architecture }}:${{ needs.information.outputs.environment }}
docker-push: true
secrets:
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
3 changes: 0 additions & 3 deletions .github/workflows/wf-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ on:
yamllint-config:
required: false
type: string
secrets:
token:
required: true

jobs:

Expand Down

0 comments on commit eb2cd44

Please sign in to comment.