Skip to content

Commit 2e9d7fb

Browse files
committed
revert environment detection
1 parent cef7587 commit 2e9d7fb

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/build-deploy-app.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,15 @@ jobs:
8181
- name: Generate image tags
8282
id: nais-deploy-vars
8383
run: |
84-
echo "nais_tag=${{ steps.docker-push.outputs.tag }}" >> "$GITHUB_OUTPUT"
85-
echo "cluster=prod" >> "$GITHUB_OUTPUT"
86-
echo "nais_config_path=.nais/prod/nais.yaml" >> "$GITHUB_OUTPUT"
84+
if [[ ${{github.event_name}} == "release" ]]; then
85+
echo "nais_tag=${{ steps.version-tag.outputs.version_tag }}" >> "$GITHUB_OUTPUT"
86+
echo "cluster=prod" >> "$GITHUB_OUTPUT"
87+
echo "nais_config_path=.nais/prod/nais.yaml" >> "$GITHUB_OUTPUT"
88+
else
89+
echo "nais_tag=${{ steps.docker-push.outputs.tag }}" >> "$GITHUB_OUTPUT"
90+
echo "cluster=test" >> "$GITHUB_OUTPUT"
91+
echo "nais_config_path=.nais/test/nais.yaml" >> "$GITHUB_OUTPUT"
92+
fi
8793
8894
deploy:
8995
name: Deploy to NAIS

0 commit comments

Comments
 (0)