Skip to content

Commit

Permalink
fix env
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixTJDietrich committed Dec 6, 2024
1 parent fe44644 commit 98f9a40
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,16 @@ on:
description: "The tag of the docker images to deploy (default: pr-<number> 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: |
Expand Down Expand Up @@ -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

0 comments on commit 98f9a40

Please sign in to comment.