mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-01-18 18:33:01 +08:00
Update .woodpecker.yml
This commit is contained in:
parent
bf55d01084
commit
a5a0706f28
1 changed files with 2 additions and 4 deletions
|
@ -10,16 +10,14 @@ steps:
|
||||||
- echo "$WOODPECKER_SSH_KEY" | tr -d '\r' > /root/.ssh/id_rsa
|
- echo "$WOODPECKER_SSH_KEY" | tr -d '\r' > /root/.ssh/id_rsa
|
||||||
- chmod 600 /root/.ssh/id_rsa
|
- chmod 600 /root/.ssh/id_rsa
|
||||||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config
|
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config
|
||||||
- ssh "$SSH_HOST" '
|
- ssh "$SSH_HOST" "
|
||||||
cd "$PROJECT_DIRECTORY";
|
cd "$PROJECT_DIRECTORY";
|
||||||
pwd;
|
|
||||||
ls -a;
|
|
||||||
docker-compose down;
|
docker-compose down;
|
||||||
docker image rm "$REGISTRY_IMAGE_TAG" || true;
|
docker image rm "$REGISTRY_IMAGE_TAG" || true;
|
||||||
docker volume rm "$DOCKER_DB_VOLUME" || true;
|
docker volume rm "$DOCKER_DB_VOLUME" || true;
|
||||||
docker pull "$REGISTRY_IMAGE_TAG";
|
docker pull "$REGISTRY_IMAGE_TAG";
|
||||||
docker-compose up -d;
|
docker-compose up -d;
|
||||||
docker image prune -af;'
|
docker image prune -af;"
|
||||||
secrets:
|
secrets:
|
||||||
[
|
[
|
||||||
SSH_HOST,
|
SSH_HOST,
|
||||||
|
|
Loading…
Reference in a new issue