Add watchtower and secrets

This commit is contained in:
2024-10-19 12:33:16 +01:00
parent 0ce8f1e8fb
commit f8e1ec8b72
4 changed files with 12 additions and 181 deletions

View File

@@ -81,8 +81,6 @@
username: "{{ secrets.GITHUB_ACTOR }}"
password: "{{ secrets.GITHUB_TOKEN }}"
# NOTE: This will fail on the first run because the container has not been
# uploaded to the registry yet
- name: Start website
community.docker.docker_container:
name: website
@@ -91,3 +89,13 @@
ports:
- "3000:3000"
state: started
- name: Start watchtower
community.docker.docker_container:
name: watchtower
image: containrrr/watchtower
restart_policy: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/matt/.docker/config.json:/config.json
state: started