fix: move DNS resolution to runner config and clean up workflow
This commit is contained in:
parent
aebfc60c3e
commit
725c589626
|
|
@ -16,11 +16,6 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
component: [worker, api, web]
|
component: [worker, api, web]
|
||||||
steps:
|
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
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|
@ -36,22 +31,17 @@ jobs:
|
||||||
with:
|
with:
|
||||||
args: >-
|
args: >-
|
||||||
--dockerfile=apps/${{ matrix.component }}/Dockerfile
|
--dockerfile=apps/${{ matrix.component }}/Dockerfile
|
||||||
--context=dir://${{ github.workspace }}
|
--context=dir://${{ gitea.workspace }}
|
||||||
--destination=frankchine/geocrop-${{ matrix.component }}:${{ github.sha }}
|
--destination=frankchine/geocrop-${{ matrix.component }}:${{ gitea.sha }}
|
||||||
--destination=frankchine/geocrop-${{ matrix.component }}:latest
|
--destination=frankchine/geocrop-${{ matrix.component }}:latest
|
||||||
--cache=true
|
--cache=true
|
||||||
env:
|
env:
|
||||||
DOCKER_CONFIG: ${{ github.workspace }}/.docker
|
DOCKER_CONFIG: ${{ gitea.workspace }}/.docker
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
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
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -29,5 +29,6 @@ data:
|
||||||
network: host
|
network: host
|
||||||
docker_host: "tcp://localhost:2375"
|
docker_host: "tcp://localhost:2375"
|
||||||
force_pull: true
|
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:
|
valid_volumes:
|
||||||
- "/certs/client"
|
- "/certs/client"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue