From 98f9a40ca365cc82cd884f3b569745140f3757f1 Mon Sep 17 00:00:00 2001 From: "Felix T.J. Dietrich" Date: Fri, 6 Dec 2024 17:50:43 +0100 Subject: [PATCH] fix env --- .github/workflows/deploy-dev.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 4920f723..9e4fa6fc 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -8,18 +8,16 @@ on: description: "The tag of the docker images to deploy (default: pr- of branch or latest)" jobs: - check-if-image-exists: + prepare-deploy: runs-on: ubuntu-latest environment: Dev outputs: image-tag: ${{ steps.retrieve-image-tag.outputs.image-tag }} + env-vars: | + DEPLOYMENT_URL=${{ vars.DEPLOYMENT_URL }} + APOLLON_REDIS_DIAGRAM_TTL=${{ vars.APOLLON_REDIS_DIAGRAM_TTL }} + steps: - - name: Debug Environment Variables - run: | - echo "DEPLOYMENT_URL=${{ vars.DEPLOYMENT_URL }}" - echo "APOLLON_REDIS_DIAGRAM_TTL=${{ vars.APOLLON_REDIS_DIAGRAM_TTL }}" - - - name: Retrieve Image Tag id: retrieve-image-tag run: | @@ -63,14 +61,12 @@ jobs: fi deploy: - needs: check-if-image-exists + needs: prepare-deploy # TODO: uses: ls1intum/.github/.github/workflows/deploy-docker-compose.yml@main uses: ./.github/workflows/deploy-docker-compose-shared.yml with: environment: Dev docker-compose-file: "./docker-compose.prod.yml" - image-tag: ${{ needs.check-if-image-exists.outputs.image-tag }} - env-vars: | - DEPLOYMENT_URL=${{ vars.DEPLOYMENT_URL }} - APOLLON_REDIS_DIAGRAM_TTL=${{ vars.APOLLON_REDIS_DIAGRAM_TTL }} + image-tag: ${{ needs.prepare-deploy.outputs.image-tag }} + env-vars: ${{ needs.prepare-deploy.outputs.env-vars }} secrets: inherit