Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 35 additions & 4 deletions .github/workflows/with-defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,46 @@ on:

jobs:
with_defaults:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
name: ["master"]
openstack_version: ["master"]
ubuntu_version: ["22.04"]
include:
- name: "bobcat"
openstack_version: "stable/2023.2"
ubuntu_version: "22.04"
- name: "antelope"
openstack_version: "stable/2023.1"
ubuntu_version: "22.04"
- name: "zed"
openstack_version: "stable/zed"
ubuntu_version: "20.04"
- name: "yoga"
openstack_version: "stable/yoga"
ubuntu_version: "20.04"
- name: "xena"
openstack_version: "stable/xena"
ubuntu_version: "20.04"
- name: "wallaby"
openstack_version: "stable/wallaby"
ubuntu_version: "20.04"
- name: "victoria"
openstack_version: "stable/victoria"
ubuntu_version: "20.04"
runs-on: ubuntu-${{ matrix.ubuntu_version }}
name: A job to deploy devstack with defaults
steps:
- uses: actions/checkout@v4
- id: devstack-action
- name: Checkout devstack-action
uses: actions/checkout@v4
- name: Deploy devstack
uses: ./
with:
branch: ${{ matrix.openstack_version }}
- name: Upload logs artifacts on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: devstack-logs
name: functional-basic-${{ matrix.name }}
path: /tmp/devstack-logs/*
8 changes: 8 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ runs:
if [[ "${{ inputs.conf_overrides }}" != "" ]]; then
echo "${{ inputs.conf_overrides }}" >> local.conf
fi

# Overriding target release for unmaintained versions
# otherwide devstack will fail to clone some repos.
TARGET_BRANCH=${{ inputs.branch }}
if [[ "${{ inputs.branch }}" == *"yoga"* ]]; then
TARGET_BRANCH="yoga-eom"
fi
echo "TARGET_BRANCH=${TARGET_BRANCH}" >> local.conf
working-directory: ./devstack
shell: bash
- name: Run devstack
Expand Down