Files
custom-html-tiny/compose.git-pull.yml
Cassowary Rusnov 3cb41c2613
All checks were successful
continuous-integration/drone/push Build is passing
chore: publish 0.1.0+0.2.29 release
2023-04-27 14:20:48 -07:00

27 lines
619 B
YAML

version: "3.8"
services:
git:
environment:
- GIT_REPO_URL
image: alpine/git:v2.36.3
entrypoint: /docker-entrypoint.sh
volumes:
- content:/git
configs:
- source: entrypoint_conf
target: /docker-entrypoint.sh
mode: 0555
deploy:
mode: replicated
replicas: 0
labels:
- "swarm.cronjob.enable=true"
- "swarm.cronjob.schedule=${CRON_SCHEDULE:-*/5 * * * *}"
restart_policy:
condition: none
configs:
entrypoint_conf:
name: ${STACK_NAME}_entrypoint_conf_${ENTRYPOINT_CONF_VERSION}
file: entrypoint.git-pull.sh