save
This commit is contained in:
parent
6d52aa27aa
commit
4565eefe89
1 changed files with 16 additions and 29 deletions
45
.github/workflows/k8s_traefik_init_setup.yml
vendored
45
.github/workflows/k8s_traefik_init_setup.yml
vendored
|
|
@ -41,36 +41,23 @@ jobs:
|
||||||
kubectl config use-context runner-context
|
kubectl config use-context runner-context
|
||||||
|
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# Install BuildKit (rootless)
|
# Build & Push Docker Image (ARC-compatible, no Docker)
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
- name: Install buildkit
|
- name: Build & Push Traefik Image (ARC-compatible)
|
||||||
run: |
|
uses: docker/build-push-action@v5
|
||||||
curl -sSL https://github.com/moby/buildkit/releases/download/v0.12.5/buildkit-v0.12.5.linux-amd64.tar.gz -o buildkit.tar.gz
|
|
||||||
tar -xzf buildkit.tar.gz
|
|
||||||
mv bin/buildctl /usr/local/bin/
|
|
||||||
mv bin/buildkitd /usr/local/bin/
|
|
||||||
chmod +x /usr/local/bin/buildctl /usr/local/bin/buildkitd
|
|
||||||
|
|
||||||
# -----------------------------------------------------
|
|
||||||
# Start BuildKitd (rootless)
|
|
||||||
# -----------------------------------------------------
|
|
||||||
- name: Start buildkitd (rootless)
|
|
||||||
run: |
|
|
||||||
buildkitd --oci-worker-no-process-sandbox --rootless &
|
|
||||||
sleep 3
|
|
||||||
|
|
||||||
# -----------------------------------------------------
|
|
||||||
# Build & Push using BuildKit (NO Docker daemon)
|
|
||||||
# -----------------------------------------------------
|
|
||||||
- name: Build & Push Traefik Image
|
|
||||||
env:
|
env:
|
||||||
IMAGE_TAG: docker.io/kimjunte/edge_router:${{ github.sha }}
|
BUILDKIT_SBOM_SCAN_STATUS: disabled
|
||||||
run: |
|
with:
|
||||||
buildctl build \
|
context: ${{ github.workspace }}/traefik
|
||||||
--frontend dockerfile.v0 \
|
file: ${{ github.workspace }}/traefik/Dockerfile
|
||||||
--local context="$GITHUB_WORKSPACE/traefik" \
|
platforms: linux/amd64
|
||||||
--local dockerfile="$GITHUB_WORKSPACE/traefik" \
|
push: true
|
||||||
--output type=image,name=${IMAGE_TAG},push=true
|
provenance: false
|
||||||
|
sbom: false
|
||||||
|
builder: default
|
||||||
|
tags: |
|
||||||
|
docker.io/kimjunte/edge_router:${{ github.sha }}
|
||||||
|
docker.io/kimjunte/edge_router:latest
|
||||||
|
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# Apply Storage Classes + PVCs
|
# Apply Storage Classes + PVCs
|
||||||
|
|
@ -108,7 +95,7 @@ jobs:
|
||||||
kubectl apply -f traefik/edge-router/traefik-ingressroute.yml
|
kubectl apply -f traefik/edge-router/traefik-ingressroute.yml
|
||||||
|
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# Deploy whoami
|
# Deploy whoami (test app)
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
- name: Deploy whoami test service
|
- name: Deploy whoami test service
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue