pipeline build v28 - steps readded
This commit is contained in:
parent
34106cca95
commit
3e724c0967
@ -1,3 +1,4 @@
|
|||||||
|
steps:
|
||||||
- name: ssh-test
|
- name: ssh-test
|
||||||
image: google/cloud-sdk:latest
|
image: google/cloud-sdk:latest
|
||||||
entrypoint:
|
entrypoint:
|
||||||
@ -33,15 +34,14 @@
|
|||||||
"export IMG_TAG=${IMG_TAG}; \
|
"export IMG_TAG=${IMG_TAG}; \
|
||||||
cd /home/jcoakley/aptiva-staging-app; \
|
cd /home/jcoakley/aptiva-staging-app; \
|
||||||
echo 'IMG_TAG = ${IMG_TAG}'; \
|
echo 'IMG_TAG = ${IMG_TAG}'; \
|
||||||
docker compose pull; \
|
sudo --preserve-env=IMG_TAG docker compose pull; \
|
||||||
docker compose up -d --force-recreate --remove-orphans; \
|
sudo --preserve-env=IMG_TAG docker compose up -d --force-recreate --remove-orphans; \
|
||||||
echo '✅ Staging stack refreshed with tag ${IMG_TAG}'"
|
echo '✅ Staging stack refreshed with tag ${IMG_TAG}'"
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
- STAGING_SSH_KEY
|
- STAGING_SSH_KEY
|
||||||
- STAGING_KNOWN_HOSTS
|
- STAGING_KNOWN_HOSTS
|
||||||
|
|
||||||
|
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
Loading…
Reference in New Issue
Block a user