forked from canonical/jimm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
6 additions
and
10 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 |
---|---|---|
|
@@ -32,6 +32,10 @@ outputs: | |
|
||
runs: | ||
using: "composite" | ||
defaults: | ||
run: | ||
working-directory: ${{ github.action_path }} | ||
shell: bash | ||
steps: | ||
- name: Login to GitHub Container Registry | ||
if: ${{ inputs.jimm-version != 'dev' }} | ||
|
@@ -44,22 +48,19 @@ runs: | |
- name: Start server based on released version | ||
if: ${{ inputs.jimm-version != 'dev' }} | ||
run: make integration-test-env | ||
shell: bash | ||
env: | ||
JIMM_VERSION: ${{ inputs.jimm-version }} | ||
|
||
- name: Start server based on development version | ||
if: ${{ inputs.jimm-version == 'dev' }} | ||
run: make dev-env | ||
shell: bash | ||
|
||
- name: Retrieve server CA cert. | ||
id: fetch-cert | ||
run: | | ||
echo 'jimm-ca<<EOF' >> $GITHUB_OUTPUT | ||
cat ./local/traefik/certs/ca.crt >> $GITHUB_OUTPUT | ||
echo 'EOF' >> $GITHUB_OUTPUT | ||
shell: bash | ||
- name: Initialise LXD | ||
run: | | ||
|
@@ -68,11 +69,9 @@ runs: | |
sudo chmod a+wr /var/snap/lxd/common/lxd/unix.socket && \ | ||
lxc network set lxdbr0 ipv6.address none && \ | ||
sudo usermod -a -G lxd $USER | ||
shell: bash | ||
- name: Setup cloud-init script for bootstraping Juju controllers | ||
run: ./local/jimm/setup-controller.sh | ||
shell: bash | ||
env: | ||
SKIP_BOOTSTRAP: true | ||
CLOUDINIT_FILE: "cloudinit.temp.yaml" | ||
|
@@ -89,29 +88,24 @@ runs: | |
- name: Save LXD controller name | ||
id: lxd-controller | ||
run: echo "name=$CONTROLLER_NAME" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
- name: Install jimmctl, jaas plugin and yq | ||
run: | | ||
sudo snap install jimmctl --channel=3/stable && \ | ||
sudo snap install jaas --channel=3/stable && | ||
sudo snap install yq | ||
shell: bash | ||
- name: Authenticate Juju CLI | ||
run: chmod -R 666 ~/.local/share/juju/*.yaml && ./local/jimm/setup-cli-auth.sh | ||
shell: bash | ||
# Below is a hardcoded JWT using the same test-secret used in JIMM's docker compose and allows the CLI to authenticate as the [email protected] user. | ||
env: | ||
JWT: ZXlKMGVYQWlPaUpLVjFRaUxDSmhiR2NpT2lKSVV6STFOaUo5LmV5SnBjM01pT2lKUGJteHBibVVnU2xkVUlFSjFhV3hrWlhJaUxDSnBZWFFpT2pFM01qUXlNamcyTmpBc0ltVjRjQ0k2TXprMk5EYzFNelEyTUN3aVlYVmtJam9pYW1sdGJTSXNJbk4xWWlJNkltcHBiVzB0ZEdWemRFQmpZVzV2Ym1sallXd3VZMjl0SW4wLkpTWVhXcGF6T0FnX1VFZ2hkbjlOZkVQdWxhWWlJQVdaX3BuSmRDbnJvWEk= | ||
|
||
- name: Add LXD Juju controller to JIMM | ||
run: ./local/jimm/add-controller.sh | ||
shell: bash | ||
env: | ||
JIMM_CONTROLLER_NAME: "jimm" | ||
CONTROLLER_NAME: ${{ steps.lxd-controller.outputs.name }} | ||
|
||
- name: Provide service account with cloud-credentials | ||
run: ./local/jimm/setup-service-account.sh | ||
shell: bash |
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