-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
charm-lp-recipe-sync job takes care of installing zosci-tools[0] and running `zosci-lp-recipe sync` which reads osci.yaml to get the desired charmcraft version to be used when building the charm and update the Launchpad charm build recipe. Introduces a new secret named "launchpad_token" which contains a token associated to a uosci-testing-bot[1] [0] https://github.com/freyes/zosci-tools [1] https://launchpad.net/~uosci-testing-bot
- Loading branch information
Showing
6 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- hosts: all | ||
roles: | ||
- charm-lp-recipe-sync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# allow repos to use a different source to facilitate testing of new features | ||
# in zosci-tools branches. | ||
zosci_tools_pkg: "git+https://github.com/freyes/zosci-tools.git#egg=zosci-tools" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
- name: Sync LP charm recipe definition | ||
environment: | ||
LP_CREDENTIALS: "{{ launchpad_token.value }}" | ||
block: | ||
- name: Install zosci-tools | ||
become: true | ||
ansible.builtin.pip: | ||
name: "{{ zosci_tools_pkg }}" | ||
register: result | ||
until: result is not failed | ||
retries: 10 | ||
delay: 10 | ||
- name: Run zosci-lp-recipe sync | ||
args: | ||
executable: /bin/bash | ||
chdir: "{{ zuul.project.src_dir }}" | ||
shell: | | ||
export LP_CREDENTIALS_FILE=$(mktemp) | ||
echo "{{ LP_CREDENTIALS }}" | base64 -d > $LP_CREDENTIALS_FILE | ||
zosci-lp-recipe sync --i-really-mean-it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters