Bump Payphone version and make ansible Payphone deployment playbook bump version at the end, not at the beginning
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user