diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index e8f908e0..953175bb 100644 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -15,17 +15,17 @@ jobs: runs-on: ubuntu-latest container: image: catthehacker/ubuntu:act-latest - options: --add-host=gitea:127.0.0.1 --add-host=docker-registry:127.0.0.1 + options: --network host services: redis: image: redis:8-alpine - options: --add-host=gitea:127.0.0.1 --add-host=docker-registry:127.0.0.1 + options: --network host mariadb: image: mariadb:latest env: MYSQL_ROOT_PASSWORD: test MYSQL_DATABASE: test - options: --add-host=gitea:127.0.0.1 --add-host=docker-registry:127.0.0.1 + options: --network host steps: - name: Checkout Code @@ -65,7 +65,7 @@ jobs: runs-on: ubuntu-latest container: image: catthehacker/ubuntu:act-latest - options: --add-host=gitea:127.0.0.1 --add-host=docker-registry:127.0.0.1 + options: --network host if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' steps: