Update .gitea/workflows/deploy.yaml

This commit is contained in:
tas
2026-03-15 17:25:11 +00:00
parent f71d140af3
commit 198f639289

View File

@@ -1,34 +1,22 @@
name: Deploy name: Deploy
on: on:
push: push:
branches: [main] branches: [main]
env: env:
REGISTRY: git.kimchi REGISTRY: git.kimchi
IMAGE: git.kimchi/tas/major_tom IMAGE: git.kimchi/tas/major_tom
NAMESPACE: jnr-web NAMESPACE: jnr-web
DEPLOYMENT: jnr-web DEPLOYMENT: jnr-web
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install buildah
run: |
apt-get update && apt-get install -y buildah
mkdir -p /etc/containers
printf '[[registry]]\nlocation = "git.kimchi"\ninsecure = true\n' > /etc/containers/registries.conf
- name: Checkout - name: Checkout
uses: actions/checkout@v4
# ── Build container image (includes WASM build stage) and push ──
- name: Configure insecure registry
run: | run: |
mkdir -p /etc/containers git clone --depth 1 https://${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_PASSWORD }}@git.kimchi/tas/major_tom.git .
printf '[[registry]]\nlocation = "git.kimchi"\ninsecure = true\n' > /etc/containers/registries.conf
- name: Build and push container image - name: Build and push container image
run: | run: |
@@ -42,7 +30,6 @@ jobs:
echo "IMAGE_TAG=$IMAGE_TAG" >> "$GITHUB_ENV" echo "IMAGE_TAG=$IMAGE_TAG" >> "$GITHUB_ENV"
# ── Deploy to k3s ──
- name: Deploy to k3s - name: Deploy to k3s
run: | run: |
mkdir -p ~/.kube mkdir -p ~/.kube