Update .woodpecker.yml
This commit is contained in:
parent
5c6ca73455
commit
94f3804d19
|
@ -79,8 +79,8 @@ steps:
|
||||||
# - docker stack rm $${CI_REPO_NAME}-staging
|
# - docker stack rm $${CI_REPO_NAME}-staging
|
||||||
## added fault tolerance for docker stack rm
|
## added fault tolerance for docker stack rm
|
||||||
- for i in {1..5}; do docker stack rm ${CI_REPO_NAME}-staging && break || sleep 10; done
|
- for i in {1..5}; do docker stack rm ${CI_REPO_NAME}-staging && break || sleep 10; done
|
||||||
- docker compose --no-cache -f docker-compose.staging.yml down
|
- docker compose -f docker-compose.staging.yml down
|
||||||
- docker compose --no-cache -f docker-compose.staging.yml rm -f
|
- docker compose -f docker-compose.staging.yml rm -f
|
||||||
|
|
||||||
# Build Step for staging Branch
|
# Build Step for staging Branch
|
||||||
build-build-push-production:
|
build-build-push-production:
|
||||||
|
@ -93,7 +93,7 @@ steps:
|
||||||
- echo "Building application for staging branch"
|
- echo "Building application for staging branch"
|
||||||
- echo "$${REGISTRY_PASSWORD}" | docker login -u "$${REGISTRY_USER}" --password-stdin git.nixc.us
|
- echo "$${REGISTRY_PASSWORD}" | docker login -u "$${REGISTRY_USER}" --password-stdin git.nixc.us
|
||||||
- echo compose build
|
- echo compose build
|
||||||
- docker compose --no-cache -f docker-compose.production.yml build --no-cache
|
- docker compose -f docker-compose.production.yml build --no-cache
|
||||||
- docker compose -f docker-compose.production.yml push
|
- docker compose -f docker-compose.production.yml push
|
||||||
when:
|
when:
|
||||||
branch: main
|
branch: main
|
||||||
|
|
Loading…
Reference in New Issue