.github/workflows/deploy.yml aktualisiert
Some checks failed
Build, Push and GitOps Deploy / test-and-deploy (push) Failing after 17s
Some checks failed
Build, Push and GitOps Deploy / test-and-deploy (push) Failing after 17s
This commit is contained in:
parent
d4f3c42b50
commit
329fd61275
1 changed files with 2 additions and 7 deletions
9
.github/workflows/deploy.yml
vendored
9
.github/workflows/deploy.yml
vendored
|
|
@ -9,12 +9,6 @@ jobs:
|
||||||
test-and-deploy:
|
test-and-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: catthehacker/ubuntu:act-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:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
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"
|
cp nginx_ssl/nginx.crt /usr/local/share/ca-certificates/nginx-sandbox.crt 2>/dev/null || echo "Nutze Workspace-Zertifikat"
|
||||||
update-ca-certificates
|
update-ca-certificates
|
||||||
|
|
||||||
|
# KORRIGIERT: Nutzt das dedizierte PAT mit echten Schreibrechten für Packages
|
||||||
- name: Log in to Local Registry
|
- 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
|
- name: Inject Version into Dockerfile
|
||||||
run: sed -i "s/{{APP_VERSION}}/${{ github.sha }}/g" Dockerfile
|
run: sed -i "s/{{APP_VERSION}}/${{ github.sha }}/g" Dockerfile
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue