save
This commit is contained in:
parent
87f5cef310
commit
7fb4636a98
1 changed files with 12 additions and 11 deletions
23
.github/workflows/k8s_traefik_init_setup.yml
vendored
23
.github/workflows/k8s_traefik_init_setup.yml
vendored
|
|
@ -6,10 +6,11 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
bootstrap:
|
bootstrap:
|
||||||
runs-on: mealcraft-runners
|
runs-on: mealcraft-runners
|
||||||
container:
|
|
||||||
image: ubuntu:22.04
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
# -----------------------------------------------------
|
||||||
|
# Checkout Repo
|
||||||
|
# -----------------------------------------------------
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
|
|
@ -17,10 +18,10 @@ jobs:
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
- name: Install kubectl
|
- name: Install kubectl
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
sudo apt-get update
|
||||||
apt-get install -y ca-certificates curl
|
sudo apt-get install -y ca-certificates curl
|
||||||
curl -LO "https://dl.k8s.io/release/$(curl -sL https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
|
curl -LO "https://dl.k8s.io/release/$(curl -sL https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
|
||||||
install -m 0755 kubectl /usr/local/bin/kubectl
|
sudo install -m 0755 kubectl /usr/local/bin/kubectl
|
||||||
|
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# Configure kubeconfig via ARC pod token
|
# Configure kubeconfig via ARC pod token
|
||||||
|
|
@ -38,15 +39,15 @@ jobs:
|
||||||
kubectl config use-context runner-context
|
kubectl config use-context runner-context
|
||||||
|
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# Install buildctl (standalone)
|
# Install buildctl (standalone BuildKit client)
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
- name: Install buildctl
|
- name: Install buildctl
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y curl
|
sudo apt-get update && sudo apt-get install -y curl
|
||||||
curl -sSL https://github.com/moby/buildkit/releases/download/v0.12.5/buildkit-v0.12.5.linux-amd64.tar.gz -o buildkit.tar.gz
|
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
|
tar -xzf buildkit.tar.gz
|
||||||
mv bin/buildctl /usr/local/bin/
|
sudo mv bin/buildctl /usr/local/bin/
|
||||||
chmod +x /usr/local/bin/buildctl
|
sudo chmod +x /usr/local/bin/buildctl
|
||||||
|
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# Build & Push Docker Image (NO docker, NO buildx, NO daemon)
|
# Build & Push Docker Image (NO docker, NO buildx, NO daemon)
|
||||||
|
|
@ -66,7 +67,7 @@ jobs:
|
||||||
--local context="${GITHUB_WORKSPACE}/traefik" \
|
--local context="${GITHUB_WORKSPACE}/traefik" \
|
||||||
--local dockerfile="${GITHUB_WORKSPACE}/traefik" \
|
--local dockerfile="${GITHUB_WORKSPACE}/traefik" \
|
||||||
--opt platform=linux/amd64 \
|
--opt platform=linux/amd64 \
|
||||||
--output type=registry,name=${IMAGE_SHA},push=true,registry.insecure=false,registry.auth=$AUTH
|
--output type=registry,name=${IMAGE_SHA},push=true,registry.auth=${AUTH}
|
||||||
|
|
||||||
# Build + Push latest tag
|
# Build + Push latest tag
|
||||||
buildctl build \
|
buildctl build \
|
||||||
|
|
@ -74,7 +75,7 @@ jobs:
|
||||||
--local context="${GITHUB_WORKSPACE}/traefik" \
|
--local context="${GITHUB_WORKSPACE}/traefik" \
|
||||||
--local dockerfile="${GITHUB_WORKSPACE}/traefik" \
|
--local dockerfile="${GITHUB_WORKSPACE}/traefik" \
|
||||||
--opt platform=linux/amd64 \
|
--opt platform=linux/amd64 \
|
||||||
--output type=registry,name=${IMAGE_LATEST},push=true,registry.insecure=false,registry.auth=$AUTH
|
--output type=registry,name=${IMAGE_LATEST},push=true,registry.auth=${AUTH}
|
||||||
|
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# Apply Storage Classes + PVCs
|
# Apply Storage Classes + PVCs
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue