Merge pull request 'Workflow' (#16) from workflow into main
Reviewed-on: #16
This commit was merged in pull request #16.
This commit is contained in:
commit
65fc741c06
1 file changed
+10
-5
@@ -3,8 +3,8 @@ name: Docker Build & Push
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -16,15 +16,20 @@ jobs:
|
||||
- name: Bei Gitea Container Registry anmelden
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: http://localhost:3000
|
||||
registry: 127.0.0.1:3000
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.token }}
|
||||
|
||||
- name: Docker Image bauen und pushen
|
||||
- name: Docker Image bauen (nur lokal im Runner)
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
push: false
|
||||
tags: |
|
||||
127.0.0.1:3000/rudi/tandur:latest
|
||||
127.0.0.1:3000/rudi/tandur:${{ gitea.ref_name }}
|
||||
|
||||
- name: Images zu Gitea pushen
|
||||
run: |
|
||||
docker push 127.0.0.1:3000/rudi/tandur:latest
|
||||
docker push 127.0.0.1:3000/rudi/tandur:${{ gitea.ref_name }}
|
||||
Reference in new issue
Block a user