Skip to content

Commit 9301778

Browse files
install stackit cli
1 parent 596f181 commit 9301778

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

action.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,24 @@ runs:
2323
uses: astral-sh/setup-uv@v6
2424
with:
2525
working-directory: ${{ github.action_path }}
26+
- name: "Install stackit cli"
27+
shell: bash
28+
run: |
29+
sudo apt-get update
30+
sudo apt-get install curl gnupg
31+
curl https://packages.stackit.cloud/keys/key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/stackit.gpg
32+
echo "deb [signed-by=/usr/share/keyrings/stackit.gpg] https://packages.stackit.cloud/apt/cli stackit main" | sudo tee -a /etc/apt/sources.list.d/stackit.list
33+
sudo apt-get update
34+
sudo apt-get install stackit
2635
- run: echo "RUN script"
2736
shell: bash
2837
- name: "Install dependencies"
2938
run: uv sync
3039
working-directory: ${{ github.action_path }}
3140
shell: bash
3241
- name: "Validate STACKIT Database ACLs"
33-
run: uv run src/main.py validate-org ${{ inputs.organisation_id }}
3442
shell: bash
43+
run: uv run src/main.py validate-org ${{ inputs.organisation_id }}
3544
working-directory: ${{ github.action_path }}
3645
env:
3746
STACKIT_SERVICE_ACCOUNT_KEY_PATH: ${{ inputs.stackit_service_account_key_path }}

0 commit comments

Comments
 (0)