Files
ansible/roles/docker/tasks/communication/starpunk.yml
T
PhilandClaude Opus 5.5 68a1622665 Deploy StarPunk from its CI-built image
StarPunk's Gitea Actions workflow now builds and pushes the image on
vX.Y.Z tags. Pin the tag in starpunk_version (v2.0.2, the first CI build)
and always pull it, so an image built by hand on the server with the
same name can't be deployed instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 12:24:08 -06:00

25 lines
662 B
YAML

- name: make starpunk directories
ansible.builtin.file:
path: "{{ item }}"
state: directory
loop:
- /opt/stacks/starpunk
- name: Template out the starpunk compose file
ansible.builtin.template:
src: starpunk-compose.yml.j2
dest: /opt/stacks/starpunk/compose.yml
owner: root
mode: '0640'
group: docker
diff: false # contains the session secret
- name: deploy starpunk stack
community.docker.docker_compose_v2:
project_src: /opt/stacks/starpunk
# Always fetch the tag from the registry so a locally built image with
# the same name can't be deployed by mistake
pull: always
files:
- compose.yml