.github/workflows/deploy.yml aktualisiert
Some checks failed
Build, Push and GitOps Deploy / test-and-deploy (push) Failing after 17s

This commit is contained in:
bast 2026-10-31 16:51:21 +00:00
parent d4f3c42b50
commit 329fd61275

View file

@ -9,12 +9,6 @@ jobs:
test-and-deploy:
runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
# --- DIESER BLOCK SCHALTET DIE SCHREIBRECHTE FREI ---
permissions:
contents: read
packages: write # Erlaubt den Push in die Container-Registry!
steps:
- name: Checkout Code
uses: actions/checkout@v4
@ -31,8 +25,9 @@ jobs:
cp nginx_ssl/nginx.crt /usr/local/share/ca-certificates/nginx-sandbox.crt 2>/dev/null || echo "Nutze Workspace-Zertifikat"
update-ca-certificates
# KORRIGIERT: Nutzt das dedizierte PAT mit echten Schreibrechten für Packages
- name: Log in to Local Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login localhost:3005 -u ${{ github.actor }} --password-stdin
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login localhost:3005 -u ${{ github.actor }} --password-stdin
- name: Inject Version into Dockerfile
run: sed -i "s/{{APP_VERSION}}/${{ github.sha }}/g" Dockerfile