Update docker-image.yml

This commit is contained in:
Mel van Veen
2024-12-03 10:08:48 +01:00
committed by GitHub
parent b0d8b66765
commit 507726061d

View File

@@ -58,11 +58,10 @@ jobs:
with:
name: version
# Stap 2: Gebruik het versienummer in de deployment
- name: Use VERSION from artifact
run: |
VERSION=$(cat version.txt)
echo "De versie is: $VERSION"
# Stap 2: Lees versie uit het artifact
- name: Read version
id: read_version
run: echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
# Stap 3: Maak verbinding via SSH naar de TrueNAS SCALE server
- name: SSH into TrueNAS SCALE
@@ -73,6 +72,9 @@ jobs:
password: ${{ secrets.TRUENAS_PASSWORD }}
port: ${{ secrets.TRUENAS_PORT }}
script: |
VERSION=${{ env.VERSION }}
echo "Gekozen versie: $VERSION"
# Kubernetes-configuratie instellen
export KUBEVERSION=/etc/rancher/k3s/k3s.yaml
export KUBECONFIG=$KUBEVERSION
@@ -82,7 +84,6 @@ jobs:
k3s kubectl apply -f service.yaml
# Update image in deployment
VERSION=$(cat version.txt)
k3s kubectl set image deployment/weetikveel weetikveel=veenm/weetikveel:${VERSION} --record
# Controle en status