mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-17 04:09:25 +08:00
Update build target and some fixes
This commit is contained in:
parent
a438dcb1da
commit
d5ffdf0fac
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ steps:
|
|||
- branch: master
|
||||
event: push
|
||||
commands:
|
||||
- docker build --no-cache -t git.keannu1.duckdns.org/keannu125/drf_template .
|
||||
- docker build --platform linux/arm64 --no-cache -t git.keannu1.duckdns.org/keannu125/drf_template .
|
||||
- echo "$REGISTRY_PASSWORD" | docker login git.keannu1.duckdns.org --password-stdin -u "$REGISTRY_USERNAME"
|
||||
- docker push git.keannu1.duckdns.org/keannu125/drf_template
|
||||
volumes:
|
||||
|
@ -28,6 +28,6 @@ steps:
|
|||
docker image rm git.keannu1.duckdns.org/keannu125/drf_template || true;
|
||||
docker volume rm drf_template_db_data || true;
|
||||
docker pull git.keannu1.duckdns.org/keannu125/drf_template:latest;
|
||||
curl https://raw.githubusercontent.com/lemeow125/DRF_Template/master/docker-compose.demo.yml | tee docker-compose.demo.yml > /dev/null
|
||||
curl "https://raw.githubusercontent.com/lemeow125/DRF_Template/master/docker-compose.demo.yml" | tee docker-compose.demo.yml > /dev/null
|
||||
docker compose -f docker-compose.demo.yml up -d;'
|
||||
secrets: [SSH_KEY, REMOTE_HOST]
|
||||
|
|
Loading…
Reference in a new issue