Compare commits
2 Commits
b5bd3edf76
...
40d44760df
| Author | SHA1 | Date |
|---|---|---|
|
|
40d44760df | |
|
|
f3277b5407 |
|
|
@ -7,19 +7,19 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-runner:
|
build-and-push-runner:
|
||||||
name: Build & Publish Runner Image to Giteastry
|
name: Build & Publish Runner Image to Giteastry
|
||||||
runs-on: host
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Login to Giteastry
|
- name: Authentification Giteastry
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.GITEA_TOKEN }}" | podman login container.rym.local -u ${{ gitea.actor }} --password-stdin
|
echo "${{ secrets.GITEA_TOKEN }}" | docker login container.rym.local -u ${{ gitea.actor }} --password-stdin
|
||||||
|
|
||||||
- name: Build Runner Image
|
- name: Build Image Runner
|
||||||
run: |
|
run: |
|
||||||
podman build -t container.rym.local/rym/devsecops-runner:latest .
|
docker build -t container.rym.local/rym/devsecops-runner:latest .
|
||||||
|
|
||||||
- name: Push to Giteastry
|
- name: Push vers Giteastry
|
||||||
run: |
|
run: |
|
||||||
podman push container.rym.local/rym/devsecops-runner:latest
|
docker push container.rym.local/rym/devsecops-runner:latest
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
FROM docker.io/alpine:3.19
|
# SOURCE INTERNE STRICTE (Giteastry)
|
||||||
|
FROM container.rym.local/mirror/alpine:3.19
|
||||||
|
|
||||||
# Dépendances de base et sécurité
|
# Outillage pré-installé dans le runner central
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
bash \
|
bash \
|
||||||
curl \
|
curl \
|
||||||
|
|
@ -9,8 +10,7 @@ RUN apk add --no-cache \
|
||||||
py3-pip \
|
py3-pip \
|
||||||
docker-cli
|
docker-cli
|
||||||
|
|
||||||
# Outils DevSecOps pré-installés
|
|
||||||
RUN pip install --no-cache-dir yamllint && \
|
RUN pip install --no-cache-dir yamllint && \
|
||||||
curl -sSLo /usr/local/bin/kubectl "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
|
curl -sSLo /usr/local/bin/kubectl "https://dl.k8s.io/release/v1.36.3/bin/linux/amd64/kubectl" && \
|
||||||
curl -sSLo /usr/local/bin/helm "https://get.helm.sh/helm-v3.14.0-linux-amd64.tar.gz" && \
|
curl -sSLo /usr/local/bin/helm "https://get.helm.sh/helm-v3.14.0-linux-amd64.tar.gz" && \
|
||||||
chmod +x /usr/local/bin/kubectl
|
chmod +x /usr/local/bin/kubectl
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue