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
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Login to Forgejo Registry
|
- name: Login to Forgejo Registry
|
||||||
uses: actions/docker/login-action@v3
|
run: |
|
||||||
with:
|
|
||||||
registry: ${{ env.REGISTRY }}
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
# Erstelle ein "App-Passwort" in Forgejo unter Einstellungen -> Anwendungen
|
# 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
|
- name: Build and Push Image
|
||||||
uses: actions/docker/build-push-action@v5
|
run: |
|
||||||
with:
|
docker build -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest .
|
||||||
context: .
|
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||||
push: true
|
|
||||||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: build-and-push
|
needs: build-and-push
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue