mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-04-19 00:11:26 +08:00
Compare commits
9 commits
8e485291e9
...
a5a0706f28
Author | SHA1 | Date | |
---|---|---|---|
a5a0706f28 | |||
bf55d01084 | |||
b6d50d75de | |||
27d7890de5 | |||
27caa3c081 | |||
1fe73565f4 | |||
c136e1e250 | |||
26dd664032 | |||
2cf2d59b89 |
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
labels:
|
labels:
|
||||||
platform: linux/amd64
|
platform: linux/arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
|
|
|
@ -10,14 +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";
|
||||||
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…
Add table
Reference in a new issue