Compare commits
3 Commits
b7ad335c02
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 60299aa778 | |||
| 48f06c53f3 | |||
| 20cb8a5a70 |
@@ -1,9 +1,9 @@
|
||||
name: Ansible Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
schedule:
|
||||
- cron: '00 23 * * *'
|
||||
#on:
|
||||
# push:
|
||||
# schedule:
|
||||
# - cron: '00 23 * * *'
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
|
||||
@@ -141,3 +141,10 @@ for container_path in ${CONTAINER_PATHS[@]}; do
|
||||
cd $LOCAL_DIR
|
||||
done
|
||||
echo "All done!"
|
||||
|
||||
## Once the script finishes, the .prom file will live on for 5 minutes before being deleted.
|
||||
#+ This allows Prometheus to pick up the alert, send out a notification, and move on with its life.
|
||||
(
|
||||
sleep 300
|
||||
rm $PROM_FILE
|
||||
) 2>1 >/dev/null &
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
ansible_sudo_pass: "{{ ANSIBLE_SUDO_PASS }}"
|
||||
|
||||
tasks:
|
||||
- name: Install Skopeo
|
||||
- name: Install Dependencies
|
||||
ansible.builtin.package:
|
||||
name: skopeo
|
||||
state: latest
|
||||
|
||||
Reference in New Issue
Block a user