mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-04-20 08:51:25 +08:00
Compare commits
No commits in common. "a5a0706f285834181c9afeb604435f5ebd3a9911" and "8e485291e9894996cf67eb024ea403c602b9c743" have entirely different histories.
a5a0706f28
...
8e485291e9
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
labels:
|
||||
platform: linux/arm64
|
||||
platform: linux/amd64
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
|
|
|
@ -10,14 +10,14 @@ steps:
|
|||
- echo "$WOODPECKER_SSH_KEY" | tr -d '\r' > /root/.ssh/id_rsa
|
||||
- chmod 600 /root/.ssh/id_rsa
|
||||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config
|
||||
- ssh "$SSH_HOST" "
|
||||
- ssh "$SSH_HOST" '
|
||||
cd "$PROJECT_DIRECTORY";
|
||||
docker-compose down;
|
||||
docker image rm "$REGISTRY_IMAGE_TAG" || true;
|
||||
docker volume rm "$DOCKER_DB_VOLUME" || true;
|
||||
docker pull "$REGISTRY_IMAGE_TAG";
|
||||
docker-compose up -d;
|
||||
docker image prune -af;"
|
||||
docker image prune -af;'
|
||||
secrets:
|
||||
[
|
||||
SSH_HOST,
|
||||
|
|
Loading…
Add table
Reference in a new issue