Skip to content

Commit

Permalink
ci: login to OpenStack provider
Browse files Browse the repository at this point in the history
  • Loading branch information
malt3 committed Feb 19, 2024
1 parent 97a95f3 commit 5a82255
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/actions/login_openstack/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: OpenStack login
description: "Login to OpenStack"
inputs:
clouds_yaml:
description: "Credentials authorized to create Constellation on OpenStack."
required: true
runs:
using: "composite"
steps:
- name: Login to OpenStack
env:
CLOUDS_YAML: ${{ inputs.clouds_yaml }}
shell: bash
run: |
mkdir -p ~/.config/openstack
echo "${CLOUDS_YAML}" > ~/.config/openstack/clouds.yaml
5 changes: 5 additions & 0 deletions .github/workflows/build-os-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ jobs:
with:
service_account: "[email protected]"

- name: Login to OpenStack
uses: ./.github/actions/login_openstack
with:
clouds_yaml: ${{ secrets.STACKIT_IMAGE_UPLOAD_CLOUDS_YAML }}

- name: Build and upload
id: build
shell: bash
Expand Down

0 comments on commit 5a82255

Please sign in to comment.