modify workflow
Some checks failed
Build, Push and Deploy / build-and-push (push) Failing after 5s
Build, Push and Deploy / deploy (push) Has been skipped

This commit is contained in:
pb-coding 2026-03-26 10:04:19 +01:00
parent 09c3a051dd
commit c7ad7dda81

View file

@ -17,19 +17,14 @@ jobs:
uses: actions/checkout@v4
- name: Login to Forgejo Registry
uses: actions/docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
run: |
# Erstelle ein "App-Passwort" in Forgejo unter Einstellungen -> Anwendungen
password: ${{ secrets.FORGEJO_TOKEN }}
echo "${{ secrets.FORGEJO_TOKEN }}" | docker login ${{ env.REGISTRY }} -u "${{ github.actor }}" --password-stdin
- name: Build and Push Image
uses: actions/docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
run: |
docker build -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest .
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
deploy:
needs: build-and-push