Update db secret

This commit is contained in:
Keannu Christian Bernasol 2025-03-27 03:46:14 +08:00
parent aa221e3382
commit 61759e37cd

View file

@ -10,8 +10,8 @@ steps:
from_secret: WOODPECKER_SSH_KEY
REGISTRY_IMAGE_TAG:
from_secret: REGISTRY_IMAGE_TAG
DOCKER_DB_VOLUME:
from_secret: DOCKER_DB_VOLUME
DOCKER_VOLUME_DB:
from_secret: DOCKER_VOLUME_DB
commands:
- apk add openssh
- mkdir -p /root/.ssh/
@ -22,7 +22,7 @@ steps:
cd "$PROJECT_DIRECTORY";
docker-compose down;
docker image rm "$REGISTRY_IMAGE_TAG" || true;
docker volume rm "$DOCKER_DB_VOLUME" || true;
docker volume rm "$DOCKER_VOLUME_DB" || true;
docker pull "$REGISTRY_IMAGE_TAG";
docker-compose up -d;
docker image prune -af;"