ci: use explicit container directives with host network for all jobs
This commit is contained in:
@@ -28,7 +28,13 @@ jobs:
|
|||||||
build-and-push:
|
build-and-push:
|
||||||
needs: quality-and-security
|
needs: quality-and-security
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: docker:24-cli
|
||||||
|
options: -v /var/run/docker.sock:/var/run/docker.sock
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install git
|
||||||
|
run: apk add --no-cache git
|
||||||
|
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
run: |
|
run: |
|
||||||
git clone http://gitea-http-ci.gitea.svc.cluster.local:3000/${{ gitea.repository }}.git .
|
git clone http://gitea-http-ci.gitea.svc.cluster.local:3000/${{ gitea.repository }}.git .
|
||||||
@@ -52,6 +58,8 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
needs: build-and-push
|
needs: build-and-push
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: alpine/git:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Clone GitOps Repo
|
- name: Clone GitOps Repo
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user