diff --git a/mgmt/git/push.yml b/mgmt/git/push.yml index a0562f3..c65245c 100644 --- a/mgmt/git/push.yml +++ b/mgmt/git/push.yml @@ -1,19 +1,22 @@ - -- git_info: git.intermodi.ch/p3ls/test - register: r +- git_info: "git.intermodi.ch/p3ls/test" + register: repo - set_fact: line: "{{ '21' | randomstring }}" - lineinfile: - dest: "{{ r.dest }}/test.txt" + dest: "{{ repo.dest }}/test.txt" line: "{{ line }}" - git_commit: - repo: git.intermodi.ch/p3ls/test + repo: "git.intermodi.ch/p3ls/test" msg: "{{ line }}" -- git_push: git.intermodi.ch/p3ls/test +- git_info: "git.intermodi.ch/p3ls/test" + register: repo + +- git_tag: "git.intermodi.ch/p3ls/test" + when: not repo.last_commit_is_tagged + +- git_push: "git.intermodi.ch/p3ls/test" -# - git_pull: -# repo: git.intermodi.cc/p3ls/test3 \ No newline at end of file diff --git a/mgmt/release.yml b/mgmt/release.yml deleted file mode 100644 index b8658aa..0000000 --- a/mgmt/release.yml +++ /dev/null @@ -1,29 +0,0 @@ - -# - debug: -# msg: hello - -- release: - name: test - owner: p3ls - path: .. - gitea: true - version: patch - -# - go_release: -# name: test -# owner: p3ls -# path: .. -# gitea: true -# targets: linux/arm -# version: patch - -# - update: -# owner: p3ls -# name: test - -# - release: -# name: test -# owner: p3ls -# path: ../. -# gitea: true -# version: "1.0.0" \ No newline at end of file diff --git a/test.txt b/test.txt index 9682051..5f7c89d 100644 --- a/test.txt +++ b/test.txt @@ -1,4 +1,5 @@ vZkkCxP jOyX5MfUP2APGkvcZu0sd VmtGAu1u3bAi30hMuJeUR -CNIG7kHkTAQu0o6KUas4T \ No newline at end of file +CNIG7kHkTAQu0o6KUas4T +RmzHQtJPJTuvI8QH8VOIQ \ No newline at end of file