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