Bump Payphone version and make ansible Payphone deployment playbook bump version at the end, not at the beginning

This commit is contained in:
2025-08-24 02:04:51 -03:00
parent 325b4cbc16
commit b9dbc17b63
3 changed files with 11 additions and 7 deletions
+9 -5
View File
@@ -2,11 +2,6 @@
hosts: localhost
gather_facts: false
tasks:
- name: Bump Version
ansible.builtin.shell: >
cargo set-version --bump patch
changed_when: false
- name: Get Cargo Project Metadata
ansible.builtin.command: cargo metadata --no-deps --format-version 1
register: cargo_metadata
@@ -132,3 +127,12 @@
ansible.builtin.command:
kubectl set image -n payphone sts/payphone payphone=registry.nyeki.dev/payphone/payphone:{{ hostvars['localhost'].app_version }}
changed_when: false
- name: Bump Payphone Version
hosts: localhost
gather_facts: true
tasks:
- name: Bump Version
ansible.builtin.shell: >
cargo set-version --bump patch
changed_when: false