modify workflow
This commit is contained in:
parent
09c3a051dd
commit
c7ad7dda81
1 changed files with 5 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue