Skip to content

Commit c9c6f59

Browse files
authored
Merge pull request #211 from psu-libraries/preview-script
preview branches will call a different script to deploy
2 parents 9d7e220 + dd0b53a commit c9c6f59

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.circleci/config.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,22 @@ jobs:
128128
cd pdfapi-config
129129
./bin/generate_application
130130
131+
deploy-preview-app:
132+
executor:
133+
name: ci-utils
134+
image_tag: << pipeline.parameters.CI_UTILS_IMAGE_TAG >>
135+
environment:
136+
CONFIG_REPO: git@github.com:psu-libraries/pdfapi-config.git
137+
steps:
138+
- clone-pdfapi-config
139+
- compute-docker-tag
140+
- run:
141+
name: Generate Preview Application
142+
command: |
143+
export TRIGGERED_BY="$CIRCLE_USERNAME"
144+
cd pdfapi-config
145+
./bin/deploy-preview-app
146+
131147
release-image:
132148
parameters:
133149
to_tag:
@@ -224,8 +240,8 @@ workflows:
224240
requires:
225241
- build-and-push
226242
- test-application
227-
- deploy-application:
228-
name: deploy-preview
243+
- deploy-preview-app:
244+
name: deploy-preview-app
229245
context:
230246
- org-global
231247
filters:

0 commit comments

Comments
 (0)