Skip to content

Commit

Permalink
fix: set environment for porter correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-fully-ported authored Dec 19, 2023
1 parent 3d3a4be commit 79adbb4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ jobs:
steps:
- checkout
- setup_remote_docker
- run:
name: Set Github tag
command: |
echo "export sha_short=$(git rev-parse --short HEAD)" >> $BASH_ENV
- run:
name: "Setup porter"
command: |
/bin/bash -c "$(curl -fsSL https://install.porter.run)"
- run:
name: Set Porter Environment Variables
command: |
echo "export PORTER_PR_NUMBER=${CIRCLE_PULL_REQUEST##*/}" >> $BASH_ENV
echo "export PORTER_TAG=$(git rev-parse --short HEAD)" >> $BASH_ENV
echo "export PORTER_TOKEN=$PORTER_STACK_1_1" >> $BASH_ENV
- run:
name: "Deploy stack"
command: |
Expand All @@ -23,11 +25,8 @@ jobs:
environment:
PORTER_CLUSTER: "1"
PORTER_HOST: https://newt-worthy-gazelle.ngrok-free.app
PORTER_PR_NUMBER: "$CIRCLE_PR_NUMBER"
PORTER_PROJECT: "1"
PORTER_STACK_NAME: circleci
PORTER_TAG: "$sha_short"
PORTER_TOKEN: "$PORTER_TOKEN_1_1"

workflows:
porter-deploy-workflow:
Expand Down

0 comments on commit 79adbb4

Please sign in to comment.