Skip to content

Commit

Permalink
Merge pull request #18 from EmilienM/stable-testing
Browse files Browse the repository at this point in the history
CI: Add jobs for stable OpenStack versions
  • Loading branch information
EmilienM authored Feb 9, 2024
2 parents 9650937 + 61ac829 commit 2d53cce
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 4 deletions.
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

0 comments on commit 2d53cce

Please sign in to comment.