forked from tas/major_tom
Update .gitea/workflows/deploy.yaml
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user