mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-01-13 06:29:37 +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
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
on:
|
||||
# Allows you to run workflow manually from Actions tab
|
||||
workflow_dispatch:
|
||||
|
|
@ -72,8 +74,8 @@ jobs:
|
|||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GHCR_PASSWORD }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build image
|
||||
uses: docker/build-push-action@v6
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue