Update docker-build.yml

Added Permissions Directive to control token.
Switched to Github_TOKEN for package.
This commit is contained in:
Vylyne 2025-10-01 14:36:13 -04:00
parent df55e2f7e5
commit fd20fb17b2

View file

@ -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