workflow docker-build-push deaktiviert
workflow docker-release aktiviert
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
name: Docker Build and Push
|
name: Docker Build and Push
|
||||||
on: [push]
|
#on: [push]
|
||||||
|
on: []
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
|
|||||||
30
.gitea/workflows/docker-release.yml
Normal file
30
.gitea/workflows/docker-release.yml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
iname: Docker Release Build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*' # Reagiert auf Tags die mit 'v' beginnen, z.B. v1.0.2
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
push_to_registry:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Login to Gitea
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: gitea.scu.si
|
||||||
|
username: ${{ gitea.actor }}
|
||||||
|
password: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
# Hier wird die Git-Referenz automatisch als Docker-Tag genutzt
|
||||||
|
#tags: gitea.scu.si/florianwalther/password-generator:${{ gitea.ref_name }}
|
||||||
|
tags: |
|
||||||
|
gitea.scu.si/florianwalther/password-generator:${{ gitea.ref_name }}
|
||||||
|
gitea.scu.si/florianwalther/password-generator:latest
|
||||||
Reference in New Issue
Block a user