save
This commit is contained in:
parent
784500a501
commit
6d52aa27aa
1 changed files with 13 additions and 6 deletions
19
.github/workflows/k8s_traefik_init_setup.yml
vendored
19
.github/workflows/k8s_traefik_init_setup.yml
vendored
|
|
@ -41,7 +41,7 @@ jobs:
|
|||
kubectl config use-context runner-context
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Enable Buildx in Rootless BuildKit Mode
|
||||
# Install BuildKit (rootless)
|
||||
# -----------------------------------------------------
|
||||
- name: Install buildkit
|
||||
run: |
|
||||
|
|
@ -51,19 +51,26 @@ jobs:
|
|||
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
|
||||
|
||||
- name: Build & Push (rootless buildkit)
|
||||
# -----------------------------------------------------
|
||||
# Build & Push using BuildKit (NO Docker daemon)
|
||||
# -----------------------------------------------------
|
||||
- name: Build & Push Traefik Image
|
||||
env:
|
||||
IMAGE_TAG: docker.io/kimjunte/edge_router:${{ github.sha }}
|
||||
run: |
|
||||
buildctl build \
|
||||
--frontend dockerfile.v0 \
|
||||
--local context=./traefik \
|
||||
--local dockerfile=./traefik \
|
||||
--output type=image,name=docker.io/kimjunte/edge_router:${GITHUB_SHA},push=true
|
||||
|
||||
--local context="$GITHUB_WORKSPACE/traefik" \
|
||||
--local dockerfile="$GITHUB_WORKSPACE/traefik" \
|
||||
--output type=image,name=${IMAGE_TAG},push=true
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Apply Storage Classes + PVCs
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue