known working version from web-password used
Docker Release Build / push_to_registry (push) Successful in 1m10s
Docker Release Build / push_to_registry (push) Successful in 1m10s
This commit is contained in:
@@ -1,18 +1,15 @@
|
|||||||
name: Docker Publish
|
name: Docker Release Build
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
- 'v*' # Reagiert auf Tags die mit 'v' beginnen, z.B. v1.0.2
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
push_to_registry:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
run: docker buildx create --use
|
|
||||||
|
|
||||||
- name: Login to Gitea
|
- name: Login to Gitea
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
@@ -20,12 +17,16 @@ jobs:
|
|||||||
registry: ${{ vars.REGISTRY_URL }} # gitea.scu.si
|
registry: ${{ vars.REGISTRY_URL }} # gitea.scu.si
|
||||||
username: ${{ secrets.REGISTRY_USER }}
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
run: |
|
uses: docker/build-push-action@v5
|
||||||
docker buildx build \
|
with:
|
||||||
--platform linux/amd64,linux/arm64 \
|
context: .
|
||||||
--push \
|
push: true
|
||||||
-t gitea.scu.si/${GITEA_REPOSITORY}/mdhost:latest \
|
# Hier wird die Git-Referenz automatisch als Docker-Tag genutzt
|
||||||
-t gitea.scu.si/${GITEA_REPOSITORY}/mdhost:$GITEA_REF_NAME \
|
#tags: gitea.scu.si/florianwalther/password-generator:${{ gitea.ref_name }}
|
||||||
.
|
build-args: |
|
||||||
|
APP_VERSION=${{ gitea.ref_name }}
|
||||||
|
tags: |
|
||||||
|
gitea.scu.si/florian.walther/mdhost:${{ gitea.ref_name }}
|
||||||
|
gitea.scu.si/florian.walther/mdhost:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user