mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-01-26 04:49:40 +00:00
Update docker-build.yml
Added Permissions Directive to control token. Switched to Github_TOKEN for package.
This commit is contained in:
parent
df55e2f7e5
commit
fd20fb17b2
1 changed files with 5 additions and 3 deletions
8
.github/workflows/docker-build.yml
vendored
8
.github/workflows/docker-build.yml
vendored
|
|
@ -1,6 +1,8 @@
|
||||||
---
|
---
|
||||||
name: Build and Push Docker Image
|
name: Build and Push Docker Image
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
on:
|
on:
|
||||||
# Allows you to run workflow manually from Actions tab
|
# Allows you to run workflow manually from Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
@ -72,8 +74,8 @@ jobs:
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GHCR_PASSWORD }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue