From 8df81250189be1d5e6a43484aa2b6c37a008218b Mon Sep 17 00:00:00 2001 From: ditmarvisser Date: Sat, 26 Jul 2025 13:28:38 +0200 Subject: [PATCH] ansible folder to tmp --- .gitea/workflows/deploy-compose-stack.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/deploy-compose-stack.yml b/.gitea/workflows/deploy-compose-stack.yml index efdaaf1..1dfd4af 100644 --- a/.gitea/workflows/deploy-compose-stack.yml +++ b/.gitea/workflows/deploy-compose-stack.yml @@ -55,7 +55,7 @@ jobs: uses: actions/checkout@v4 with: repository: ${{ github.event.repository.owner.login }}/ansible-shared - path: ansible-shared + path: /tmp/ansible-shared token: ${{ secrets.ORG_GITEA_TOKEN }} - name: Set up Python @@ -78,19 +78,15 @@ jobs: - name: Generate inventory from template run: | - cd ansible-shared + cd /tmp/ansible-shared 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: | - cd ansible-shared - # Build the authenticated repo URL - SERVER_HOST=$(echo "${{ secrets.SERVER_URL }}" | sed 's|https://||') - REPO_URL="https://oauth2:${{ secrets.ORG_GITEA_TOKEN }}@${SERVER_HOST}/${{ github.repository }}.git" - export REPO_URL - + cd /tmp/ansible-shared + EXTRA_VARS_FLAG="" if [ -n "${{ inputs.extra_vars }}" ]; then EXTRA_VARS_FLAG="--extra-vars '${{ inputs.extra_vars }}'" @@ -102,6 +98,7 @@ jobs: env: ANSIBLE_HOST_KEY_CHECKING: False STACK_NAME: ${{ github.event.repository.name }} + STACK_SOURCE_PATH: ${{ github.workspace }} STAF_HOST: ${{ secrets.STAF_HOST }} STAF_ANSIBLE_USER: ${{ secrets.STAF_ANSIBLE_USER }} STAF_PUID: ${{ secrets.STAF_PUID }}