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>
25 lines
662 B
YAML
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
|