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