26 lines
724 B
YAML
26 lines
724 B
YAML
name: Build & Publish DevSecOps Runner
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build-and-push-runner:
|
|
name: Build & Publish Runner Image to Giteastry
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Authentification Giteastry
|
|
run: |
|
|
echo "${{ secrets.GITEA_TOKEN }}" | docker login container.rym.local -u ${{ gitea.actor }} --password-stdin
|
|
|
|
- name: Build Image Runner
|
|
run: |
|
|
docker build --add-host container.rym.local:213.32.20.132 -t container.rym.local/rym/devsecops-runner:latest .
|
|
|
|
- name: Push vers Giteastry
|
|
run: |
|
|
docker push container.rym.local/rym/devsecops-runner:latest
|