change
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s Details

This commit is contained in:
DrMaxNix 2024-04-20 17:10:58 +02:00
parent 173ade70bd
commit 21ad1fe575
2 changed files with 12 additions and 10 deletions

View File

@ -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}}

View File

@ -1,4 +1,4 @@
<?php
echo("<pre style='background-color: #f8a;'>" . "v1.1.1" . "</pre>");
echo("<pre style='background-color: #f8a;'>" . "v1.1.2" . "</pre>");
echo("<pre style='background-color: #af8;'>" . print_r($_SERVER, true) . "</pre>");
?>