-
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.
charmhub-lp-tool-osci-sync job takes care of installing charmhub-lp-tools (via pip) and running `charmhub-lp-tool osci-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[0] [0] https://launchpad.net/~uosci-testing-bot
- Loading branch information
Showing
6 changed files
with
62 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: | ||
- charmhub-lp-tool-osci-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 charmhub-lp-tools branches. | ||
charmhub_lp_tools_pkg: "git+https://github.com/openstack-charmers/charmhub-lp-tools.git@main#egg=charmhub-lp-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 charm recipe definitions to Launchpad | ||
environment: | ||
LP_CREDENTIALS: "{{ launchpad_token.value }}" | ||
block: | ||
- name: Install zosci-tools | ||
become: true | ||
ansible.builtin.pip: | ||
name: "{{ charmhub_lp_tools_pkg }}" | ||
register: result | ||
until: result is not failed | ||
retries: 10 | ||
delay: 10 | ||
- name: Run charmhub-lp-tool osci-sync | ||
args: | ||
executable: /bin/bash | ||
chdir: "{{ zuul.project.src_dir }}" | ||
shell: | | ||
export LP_CREDENTIALS_FILE=$(mktemp) | ||
echo "{{ LP_CREDENTIALS }}" > $LP_CREDENTIALS_FILE | ||
charmhub-lp-tool osci-sync --repo-dir '{{ zuul.project.src_dir }}' --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