Skip to content

Commit

Permalink
set var
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Abraham <[email protected]>
  • Loading branch information
cjyabraham committed May 19, 2024
1 parent 5707405 commit fc7734d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/dev-multidev-lfasiallcci
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ composer run prepare-for-pantheon
if [[ $CI_BRANCH != $DEFAULT_BRANCH ]]
then
# Create a new multidev environment (or push to an existing one)
terminus -n build:env:create "$TERMINUS_SITE.dev" "$TERMINUS_ENV" --yes
terminus -n build:env:create "$TERMINUS_SITE2.dev" "$TERMINUS_ENV" --yes
else
# Push to the dev environment
terminus -n build:env:push "$TERMINUS_SITE.dev" --yes
terminus -n build:env:push "$TERMINUS_SITE2.dev" --yes
fi

# Run update-db to ensure that the cloned database is updated for the new code.
terminus -n wp $TERMINUS_SITE.$TERMINUS_ENV -- core update-db
terminus -n wp $TERMINUS_SITE2.$TERMINUS_ENV -- core update-db

# Clear the site environment's cache
terminus -n env:clear-cache "$TERMINUS_SITE.$TERMINUS_ENV"
terminus -n env:clear-cache "$TERMINUS_SITE2.$TERMINUS_ENV"

# Ensure secrets are set
terminus -n secrets:set "$TERMINUS_SITE.$TERMINUS_ENV" token "$GITHUB_TOKEN" --file='github-secrets.json' --clear --skip-if-empty
terminus -n secrets:set "$TERMINUS_SITE2.$TERMINUS_ENV" token "$GITHUB_TOKEN" --file='github-secrets.json' --clear --skip-if-empty

# Delete old multidev environments associated
# with a PR that has been merged or closed.
terminus -n build:env:delete:pr $TERMINUS_SITE --yes
terminus -n build:env:delete:pr $TERMINUS_SITE2 --yes

0 comments on commit fc7734d

Please sign in to comment.