mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-04-05 01:21:27 +08:00
Update db secret
This commit is contained in:
parent
aa221e3382
commit
61759e37cd
1 changed files with 3 additions and 3 deletions
|
@ -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;"
|
||||
|
|
Loading…
Add table
Reference in a new issue