✨ change
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
Details
This commit is contained in:
parent
173ade70bd
commit
21ad1fe575
|
@ -5,7 +5,7 @@ on:
|
|||
- published
|
||||
|
||||
env:
|
||||
REGISTRY: git.tjdev.de
|
||||
REGISTRY_GIT: git.tjdev.de
|
||||
IMAGE_NAME: ${{ gitea.repository }}
|
||||
|
||||
jobs:
|
||||
|
@ -15,24 +15,26 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
|
||||
- name: Login to Git Container Registry
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ secrets.GIT_PACKREG_USERNAME }}
|
||||
password: ${{ secrets.GIT_PACKREG_PASSWORD }}
|
||||
|
||||
- name: Login to DockerHub Container Registry
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||
|
||||
- name: Login to Git Container Registry
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY_GIT }}
|
||||
username: ${{ secrets.GIT_PACKREG_USERNAME }}
|
||||
password: ${{ secrets.GIT_PACKREG_PASSWORD }}
|
||||
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
uses: https://github.com/docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
images: |
|
||||
${{ env.IMAGE_NAME }}
|
||||
${{ env.REGISTRY_GIT }}/${{ env.IMAGE_NAME }}
|
||||
tags: |
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
|
|
Loading…
Reference in New Issue