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