fix: move DNS resolution to runner config and clean up workflow

This commit is contained in:
fchinembiri 2026-05-08 17:55:28 +02:00
parent aebfc60c3e
commit 725c589626
2 changed files with 4 additions and 13 deletions

View File

@ -16,11 +16,6 @@ jobs:
matrix:
component: [worker, api, web]
steps:
- name: Fix DNS
run: |
echo "10.43.224.21 gitea.geocrop.svc.cluster.local" >> /etc/hosts
echo "10.43.224.21 git.techarvest.co.zw" >> /etc/hosts
- name: Checkout repository
uses: actions/checkout@v4
with:
@ -36,22 +31,17 @@ jobs:
with:
args: >-
--dockerfile=apps/${{ matrix.component }}/Dockerfile
--context=dir://${{ github.workspace }}
--destination=frankchine/geocrop-${{ matrix.component }}:${{ github.sha }}
--context=dir://${{ gitea.workspace }}
--destination=frankchine/geocrop-${{ matrix.component }}:${{ gitea.sha }}
--destination=frankchine/geocrop-${{ matrix.component }}:latest
--cache=true
env:
DOCKER_CONFIG: ${{ github.workspace }}/.docker
DOCKER_CONFIG: ${{ gitea.workspace }}/.docker
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Fix DNS
run: |
echo "10.43.224.21 gitea.geocrop.svc.cluster.local" >> /etc/hosts
echo "10.43.224.21 git.techarvest.co.zw" >> /etc/hosts
- name: Checkout repository
uses: actions/checkout@v4
with:

View File

@ -29,5 +29,6 @@ data:
network: host
docker_host: "tcp://localhost:2375"
force_pull: true
options: "--add-host git.techarvest.co.zw:10.43.224.21 --add-host gitea.geocrop.svc.cluster.local:10.43.224.21"
valid_volumes:
- "/certs/client"