adding image-release on docker hub to ci-pipeline
This commit is contained in:
@@ -6,11 +6,11 @@ on:
|
||||
image_tag:
|
||||
description: '2. Tag für das Docker-Image (außer latest) (z.B. v1.0.0)'
|
||||
required: true
|
||||
default: '0.7.0'
|
||||
default: '0.7.3'
|
||||
|
||||
env:
|
||||
image_name: mysteryhelfer
|
||||
registry: gitea.tebarius.duckdns.org
|
||||
registry_gitea: gitea.tebarius.duckdns.org
|
||||
user: tebarius
|
||||
|
||||
jobs:
|
||||
@@ -26,9 +26,15 @@ jobs:
|
||||
- name: Login to Gitea
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ${{ env.registry }}
|
||||
registry: ${{ env.registry_gitea }}
|
||||
username: ${{ env.user }}
|
||||
password: ${{ secrets.DOCKER_PULL_TOKEN }}
|
||||
password: ${{ secrets.IMAGE_REGISTRY_TOKEN_GITEA }}
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ env.user }}
|
||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
run: |
|
||||
@@ -39,6 +45,8 @@ jobs:
|
||||
docker buildx build \
|
||||
--file ./Dockerfile \
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
--tag ${{ env.registry }}/${{ env.user }}/${{ env.image_name }}:latest \
|
||||
--tag ${{ env.registry }}/${{ env.user }}/${{ env.image_name }}:${{ github.event.inputs.image_tag }} \
|
||||
--tag ${{ env.registry_gitea }}/${{ env.user }}/${{ env.image_name }}:latest \
|
||||
--tag ${{ env.registry_gitea }}/${{ env.user }}/${{ env.image_name }}:${{ github.event.inputs.image_tag }} \
|
||||
--tag ${{ env.user }}/${{ env.image_name }}:latest \
|
||||
--tag ${{ env.user }}/${{ env.image_name }}:${{ github.event.inputs.image_tag }} \
|
||||
--push ./
|
||||
|
||||
Reference in New Issue
Block a user