Skip to content

Commit

Permalink
fix(ci): ephemeral env build and up dependency (#26919)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar authored Jan 31, 2024
1 parent 807c57c commit 1fd9270
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ephemeral-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
echo "has-secrets=1" >> "$GITHUB_OUTPUT"
fi
ephemeral_env_comment:
ephemeral-env-comment:
needs: config
if: needs.config.outputs.has-secrets
name: Evaluate ephemeral env comment trigger (/testenv)
Expand Down Expand Up @@ -80,8 +80,8 @@ jobs:
core.setFailed(errMsg)
ephemeral-docker-build:
needs: ephemeral_env_comment
name: docker-build
needs: ephemeral-env-comment
name: ephemeral-docker-build
runs-on: ubuntu-latest
steps:
- name: Get Info from comment
Expand Down Expand Up @@ -148,9 +148,9 @@ jobs:
docker tag $SHA $ECR_REGISTRY/$ECR_REPOSITORY:$SHA
docker push -a $ECR_REGISTRY/$ECR_REPOSITORY
ephemeral_env_up:
needs: ephemeral_env_comment
if: needs.ephemeral_env_comment.outputs.slash-command == 'up'
ephemeral-env-up:
needs: [ephemeral-env-comment, ephemeral-docker-build]
if: needs.ephemeral-env-comment.outputs.slash-command == 'up'
name: Spin up an ephemeral environment
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -207,7 +207,7 @@ jobs:

- name: Update env vars in the Amazon ECS task definition
run: |
cat <<< "$(jq '.containerDefinitions[0].environment += ${{ needs.ephemeral_env_comment.outputs.feature-flags }}' < ${{ steps.task-def.outputs.task-definition }})" > ${{ steps.task-def.outputs.task-definition }}
cat <<< "$(jq '.containerDefinitions[0].environment += ${{ needs.ephemeral-env-comment.outputs.feature-flags }}' < ${{ steps.task-def.outputs.task-definition }})" > ${{ steps.task-def.outputs.task-definition }}
- name: Describe ECS service
id: describe-services
Expand Down

0 comments on commit 1fd9270

Please sign in to comment.