Update .woodpecker.yml
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
50d27522f8
commit
4bd10539d7
|
@ -7,9 +7,6 @@ clone:
|
|||
settings:
|
||||
partial: false
|
||||
depth: 1
|
||||
# dns:
|
||||
# - 1.1.1.1
|
||||
# - 1.0.0.1
|
||||
|
||||
steps:
|
||||
# Build and Push for Staging
|
||||
|
@ -25,13 +22,11 @@ steps:
|
|||
from_secret: DOCKER_REGISTRY_USER
|
||||
DOCKER_REGISTRY_PASSWORD:
|
||||
from_secret: DOCKER_REGISTRY_PASSWORD
|
||||
settings:
|
||||
# dns:
|
||||
# - 1.1.1.1
|
||||
# - 1.0.0.1
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
commands:
|
||||
- echo "nameserver 1.1.1.1" > /etc/resolv.conf # Set Cloudflare DNS
|
||||
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
|
||||
- HOSTNAME=$(docker info --format '{{.Name}}')
|
||||
- 'echo "Worker hostname: $HOSTNAME"'
|
||||
- 'echo "Logging into registries"'
|
||||
|
@ -53,13 +48,11 @@ steps:
|
|||
from_secret: REGISTRY_USER
|
||||
REGISTRY_PASSWORD:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
settings:
|
||||
# dns:
|
||||
# - 1.1.1.1
|
||||
# - 1.0.0.1
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
commands:
|
||||
- echo "nameserver 1.1.1.1" > /etc/resolv.conf # Set Cloudflare DNS
|
||||
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
|
||||
- HOSTNAME=$(docker info --format '{{.Name}}')
|
||||
- 'echo "Worker hostname: $HOSTNAME"'
|
||||
- 'echo "Deploying to staging environment"'
|
||||
|
@ -72,14 +65,12 @@ steps:
|
|||
# Wait for Deploy to Complete
|
||||
wait-for-deploy-staging:
|
||||
name: wait-for-deploy-staging
|
||||
image: woodpeckerci/plugin-docker-buildx # Changed to match other steps with Docker support
|
||||
settings:
|
||||
# dns:
|
||||
# - 1.1.1.1
|
||||
# - 1.0.0.1
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock # Required for docker info
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
commands:
|
||||
- echo "nameserver 1.1.1.1" > /etc/resolv.conf # Set Cloudflare DNS
|
||||
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
|
||||
- HOSTNAME=$(docker info --format '{{.Name}}')
|
||||
- 'echo "Worker hostname: $HOSTNAME"'
|
||||
- 'echo "Waiting for staging deploy step to complete rollout."'
|
||||
|
@ -97,13 +88,11 @@ steps:
|
|||
from_secret: REGISTRY_USER
|
||||
REGISTRY_PASSWORD:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
settings:
|
||||
# dns:
|
||||
# - 1.1.1.1
|
||||
# - 1.0.0.1
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
commands:
|
||||
- echo "nameserver 1.1.1.1" > /etc/resolv.conf # Set Cloudflare DNS
|
||||
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
|
||||
- HOSTNAME=$(docker info --format '{{.Name}}')
|
||||
- 'echo "Worker hostname: $HOSTNAME"'
|
||||
- 'echo "Cleaning up staging environment"'
|
||||
|
@ -127,13 +116,11 @@ steps:
|
|||
from_secret: DOCKER_REGISTRY_USER
|
||||
DOCKER_REGISTRY_PASSWORD:
|
||||
from_secret: DOCKER_REGISTRY_PASSWORD
|
||||
settings:
|
||||
# dns:
|
||||
# - 1.1.1.1
|
||||
# - 1.0.0.1
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
commands:
|
||||
- echo "nameserver 1.1.1.1" > /etc/resolv.conf # Set Cloudflare DNS
|
||||
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
|
||||
- HOSTNAME=$(docker info --format '{{.Name}}')
|
||||
- 'echo "Worker hostname: $HOSTNAME"'
|
||||
- 'echo "Logging into registries"'
|
||||
|
@ -155,13 +142,11 @@ steps:
|
|||
from_secret: REGISTRY_USER
|
||||
REGISTRY_PASSWORD:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
settings:
|
||||
# dns:
|
||||
# - 1.1.1.1
|
||||
# - 1.0.0.1
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
commands:
|
||||
- echo "nameserver 1.1.1.1" > /etc/resolv.conf # Set Cloudflare DNS
|
||||
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
|
||||
- HOSTNAME=$(docker info --format '{{.Name}}')
|
||||
- 'echo "Worker hostname: $HOSTNAME"'
|
||||
- 'echo "Deploying to production environment"'
|
||||
|
|
Loading…
Reference in New Issue