-
Notifications
You must be signed in to change notification settings - Fork 8
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
15 additions
and
2 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 |
---|---|---|
|
@@ -41,15 +41,21 @@ runs: | |
username: ${{ github.actor }} | ||
password: ${{ inputs.ghcr-pat }} | ||
|
||
# We can't use a make target here because a composite action | ||
# doesn't have a .git folder when checked out. | ||
- name: Start server based on released version | ||
if: ${{ inputs.jimm-version != 'dev' }} | ||
run: make integration-test-env | ||
run: | | ||
cd local/traefik/certs; ./certs.sh; cd - && \ | ||
docker compose --profile test up -d --wait | ||
shell: bash | ||
working-directory: ${{ github.action_path }}/../../.. | ||
env: | ||
JIMM_VERSION: ${{ inputs.jimm-version }} | ||
|
||
- name: Start server based on development version | ||
if: ${{ inputs.jimm-version == 'dev' }} | ||
working-directory: ${{ github.action_path }}/../../.. | ||
run: make dev-env | ||
shell: bash | ||
|
||
|
@@ -59,6 +65,7 @@ runs: | |
echo 'jimm-ca<<EOF' >> $GITHUB_OUTPUT | ||
cat ./local/traefik/certs/ca.crt >> $GITHUB_OUTPUT | ||
echo 'EOF' >> $GITHUB_OUTPUT | ||
working-directory: ${{ github.action_path }}/../../.. | ||
shell: bash | ||
|
||
- name: Initialise LXD | ||
|
@@ -73,6 +80,7 @@ runs: | |
- name: Setup cloud-init script for bootstraping Juju controllers | ||
run: ./local/jimm/setup-controller.sh | ||
shell: bash | ||
working-directory: ${{ github.action_path }}/../../.. | ||
env: | ||
SKIP_BOOTSTRAP: true | ||
CLOUDINIT_FILE: "cloudinit.temp.yaml" | ||
|
@@ -83,7 +91,7 @@ runs: | |
provider: "lxd" | ||
channel: "5.19/stable" | ||
juju-channel: ${{ inputs.juju-channel }} | ||
bootstrap-options: "--config cloudinit.temp.yaml --config login-token-refresh-url=https://jimm.localhost/.well-known/jwks.json" | ||
bootstrap-options: "--config ${{ github.action_path }}/../../../cloudinit.temp.yaml --config login-token-refresh-url=https://jimm.localhost/.well-known/jwks.json" | ||
|
||
# As described in https://github.com/charmed-kubernetes/actions-operator grab the newly setup controller name | ||
- name: Save LXD controller name | ||
|
@@ -100,18 +108,21 @@ runs: | |
|
||
- name: Authenticate Juju CLI | ||
run: chmod -R 666 ~/.local/share/juju/*.yaml && ./local/jimm/setup-cli-auth.sh | ||
working-directory: ${{ github.action_path }}/../../.. | ||
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 | ||
working-directory: ${{ github.action_path }}/../../.. | ||
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 | ||
working-directory: ${{ github.action_path }}/../../.. | ||
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