mirror of
https://github.com/MrUnknownDE/utools.git
synced 2026-04-19 14:13:44 +02:00
add token secret
This commit is contained in:
11
.github/workflows/docker-build-push.yml
vendored
11
.github/workflows/docker-build-push.yml
vendored
@@ -8,23 +8,20 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# DIESER BLOCK IST ENTSCHEIDEND - er wird aber von den Repo-Settings überschrieben, wenn diese zu restriktiv sind.
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write # Notwendig, um in die GHCR zu pushen
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0 # Notwendig, um den Git-Hash zu bekommen
|
||||||
|
|
||||||
- name: Log in to GitHub Container Registry
|
- name: Log in to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
# Verwendet Ihr dediziertes Secret für die Authentifizierung
|
||||||
|
password: ${{ secrets.GHC_PUSH }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
@@ -43,7 +40,7 @@ jobs:
|
|||||||
- name: Build images using compose.build.yml
|
- name: Build images using compose.build.yml
|
||||||
env:
|
env:
|
||||||
GIT_COMMIT_SHA: ${{ steps.git_sha.outputs.sha }}
|
GIT_COMMIT_SHA: ${{ steps.git_sha.outputs.sha }}
|
||||||
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
|
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} # Sentry DSN als Secret übergeben
|
||||||
run: |
|
run: |
|
||||||
docker compose -f compose.build.yml build
|
docker compose -f compose.build.yml build
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user