From b9dbc17b63f15077fd5bd9f4c8c1859f9e5a089b Mon Sep 17 00:00:00 2001 From: Rafael Bradley Date: Sun, 24 Aug 2025 02:04:51 -0300 Subject: [PATCH] Bump Payphone version and make ansible Payphone deployment playbook bump version at the end, not at the beginning --- Cargo.lock | 2 +- Cargo.toml | 2 +- playbooks/09-payphone.yml | 14 +++++++++----- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ff1e61d..3c46361 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1437,7 +1437,7 @@ checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3" [[package]] name = "payphone" -version = "4.2.24" +version = "4.3.1" dependencies = [ "async-trait", "axum", diff --git a/Cargo.toml b/Cargo.toml index 55b6429..e2580ed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "payphone" -version = "4.2.24" +version = "4.3.1" edition = "2024" default-run = "payphone" diff --git a/playbooks/09-payphone.yml b/playbooks/09-payphone.yml index 94c4f7c..e78b16b 100644 --- a/playbooks/09-payphone.yml +++ b/playbooks/09-payphone.yml @@ -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