ci: login to OpenStack provider

This commit is contained in:
Malte Poll 2024-02-19 13:35:55 +01:00
parent 75f16ce87b
commit 980b2f0e87
2 changed files with 21 additions and 0 deletions

View File

@ -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

View File

@ -162,6 +162,11 @@ jobs:
with:
service_account: "image-uploader@constellation-images.iam.gserviceaccount.com"
- 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