From 246b5e003a40d5d2f70d6831062878d025b967d7 Mon Sep 17 00:00:00 2001 From: ditmarvisser Date: Fri, 25 Jul 2025 15:26:28 +0200 Subject: [PATCH] change envsubst to sed --- .gitea/workflows/deploy-compose-stack.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy-compose-stack.yml b/.gitea/workflows/deploy-compose-stack.yml index c78ec80..33dc12b 100644 --- a/.gitea/workflows/deploy-compose-stack.yml +++ b/.gitea/workflows/deploy-compose-stack.yml @@ -78,11 +78,9 @@ jobs: - name: Generate inventory from template run: | - cd ansible-shared - envsubst < inventory.template > inventory.ini - env: - STAF_HOST: ${{ secrets.STAF_HOST }} - STAF_ANSIBLE_USER: ${{ secrets.STAF_ANSIBLE_USER }} + sed -e "s/\${STAF_HOST}/${{ secrets.STAF_HOST }}/g" \ + -e "s/\${STAF_ANSIBLE_USER}/${{ secrets.STAF_ANSIBLE_USER }}/g" \ + inventory.template > inventory.ini - name: Deploy stack with Ansible run: |