chore: update ci-cd.yml

This commit is contained in:
2025-07-18 00:42:11 +02:00
parent 6d8d5d4b83
commit b6dfdd852b

View File

@@ -7,7 +7,7 @@ on:
branches: [ main ] branches: [ main ]
env: env:
REGISTRY_URL: docker-registry:5000 # Via host-gateway mapping REGISTRY_URL: docker-registry:5000 # Container network access
IMAGE_NAME: michaelschiemer IMAGE_NAME: michaelschiemer
jobs: jobs:
@@ -15,17 +15,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: catthehacker/ubuntu:act-latest image: catthehacker/ubuntu:act-latest
options: --add-host=gitea:host-gateway --add-host=docker-registry:host-gateway
services: services:
redis: redis:
image: redis:8-alpine image: redis:8-alpine
options: --add-host=gitea:host-gateway --add-host=docker-registry:host-gateway
mariadb: mariadb:
image: mariadb:latest image: mariadb:latest
env: env:
MYSQL_ROOT_PASSWORD: test MYSQL_ROOT_PASSWORD: test
MYSQL_DATABASE: test MYSQL_DATABASE: test
options: --add-host=gitea:host-gateway --add-host=docker-registry:host-gateway
steps: steps:
- name: Checkout Code - name: Checkout Code
@@ -65,7 +62,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: catthehacker/ubuntu:act-latest image: catthehacker/ubuntu:act-latest
options: --add-host=gitea:host-gateway --add-host=docker-registry:host-gateway
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'
steps: steps: