chore: update ci-cd.yml
This commit is contained in:
@@ -7,7 +7,7 @@ on:
|
|||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY_URL: 127.0.0.1:5000 # Host network access
|
REGISTRY_URL: docker-registry:5000 # Via host-gateway mapping
|
||||||
IMAGE_NAME: michaelschiemer
|
IMAGE_NAME: michaelschiemer
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -15,17 +15,17 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
options: --network host
|
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: --network host
|
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: --network host
|
options: --add-host=gitea:host-gateway --add-host=docker-registry:host-gateway
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
@@ -65,7 +65,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
options: --network host
|
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user