Update .woodpecker.yml

This commit is contained in:
colin 2024-01-22 05:07:54 +00:00
parent 5c6ca73455
commit 94f3804d19
1 changed files with 3 additions and 3 deletions

View File

@ -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