Update docker-image.yml
This commit is contained in:
13
.github/workflows/docker-image.yml
vendored
13
.github/workflows/docker-image.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user