fix(ci): update process
This commit is contained in:
parent
612048bc41
commit
800dc6b783
|
|
@ -4,6 +4,12 @@ on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
|
# Variables globales appliquées automatiquement à toutes les étapes
|
||||||
|
env:
|
||||||
|
DOCKER_HOST: tcp://localhost:2376
|
||||||
|
DOCKER_CERT_PATH: /certs/client
|
||||||
|
DOCKER_TLS_VERIFY: "1"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-runner:
|
build-and-push-runner:
|
||||||
name: Build & Publish Runner Image to Giteastry
|
name: Build & Publish Runner Image to Giteastry
|
||||||
|
|
@ -13,22 +19,13 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Authentification Giteastry
|
- name: Authentification Giteastry
|
||||||
env:
|
|
||||||
DOCKER_HOST: tcp://localhost:2376
|
|
||||||
DOCKER_TLS_VERIFY: "0"
|
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.GITEA_TOKEN }}" | docker login git.gorym.net -u ${{ gitea.actor }} --password-stdin
|
echo "${{ secrets.GITEA_TOKEN }}" | docker login git.gorym.net -u ${{ gitea.actor }} --password-stdin
|
||||||
|
|
||||||
- name: Build Image Runner
|
- name: Build Image Runner
|
||||||
env:
|
|
||||||
DOCKER_HOST: tcp://localhost:2376
|
|
||||||
DOCKER_TLS_VERIFY: "0"
|
|
||||||
run: |
|
run: |
|
||||||
docker build -t git.gorym.net/rym/devsecops-runner:latest .
|
docker build -t git.gorym.net/rym/devsecops-runner:latest .
|
||||||
|
|
||||||
- name: Push vers Giteastry
|
- name: Push vers Giteastry
|
||||||
env:
|
|
||||||
DOCKER_HOST: tcp://localhost:2376
|
|
||||||
DOCKER_TLS_VERIFY: "0"
|
|
||||||
run: |
|
run: |
|
||||||
docker push git.gorym.net/rym/devsecops-runner:latest
|
docker push git.gorym.net/rym/devsecops-runner:latest
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue