mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-04-16 23:11:25 +08:00
Update .yml files
This commit is contained in:
parent
a5a0706f28
commit
29ba67dc7a
2 changed files with 20 additions and 15 deletions
|
@ -13,10 +13,12 @@ steps:
|
||||||
- docker push "$REGISTRY_IMAGE_TAG"
|
- docker push "$REGISTRY_IMAGE_TAG"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
secrets:
|
environment:
|
||||||
[
|
FORGEJO_REGISTRY_URL:
|
||||||
FORGEJO_REGISTRY_URL,
|
from_secret: FORGEJO_REGISTRY_URL
|
||||||
FORGEJO_REGISTRY_USERNAME,
|
FORGEJO_REGISTRY_USERNAME:
|
||||||
FORGEJO_REGISTRY_PASSWORD,
|
from_secret: FORGEJO_REGISTRY_USERNAME
|
||||||
REGISTRY_IMAGE_TAG,
|
FORGEJO_REGISTRY_PASSWORD:
|
||||||
]
|
from_secret: FORGEJO_REGISTRY_PASSWORD
|
||||||
|
REGISTRY_IMAGE_TAG:
|
||||||
|
from_secret: REGISTRY_IMAGE_TAG
|
||||||
|
|
|
@ -18,14 +18,17 @@ steps:
|
||||||
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:
|
environment:
|
||||||
[
|
SSH_HOST:
|
||||||
SSH_HOST,
|
from_secret: SSH_HOST
|
||||||
PROJECT_DIRECTORY,
|
PROJECT_DIRECTORY:
|
||||||
WOODPECKER_SSH_KEY,
|
from_secret: PROJECT_DIRECTORY
|
||||||
REGISTRY_IMAGE_TAG,
|
WOODPECKER_SSH_KEY:
|
||||||
DOCKER_DB_VOLUME,
|
from_secret: WOODPECKER_SSH_KEY
|
||||||
]
|
REGISTRY_IMAGE_TAG:
|
||||||
|
from_secret: REGISTRY_IMAGE_TAG
|
||||||
|
DOCKER_DB_VOLUME:
|
||||||
|
from_secret: DOCKER_DB_VOLUME
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
|
|
Loading…
Add table
Reference in a new issue