Skip to content

Commit

Permalink
add a release and version information to the build process
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Carter <[email protected]>
  • Loading branch information
cloudnull committed Jan 11, 2024
1 parent 6a66378 commit 115f57b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/release-horizon-rxt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,17 @@ name: Create and publish a the Horizon RXT compatible image
on:
workflow_dispatch:
inputs:
release:
description: 'Set release used for the build'
imageTag:
description: 'Set tag for the image'
required: true
default: 'master-ubuntu_jammy'
type: choice
options:
- master-ubuntu_jammy
- 2023.1-ubuntu_jammy
- 2023.2-ubuntu_jammy
pluginTag:
description: 'Set release used for the build environment'
required: true
default: 'master'
type: choice
Expand Down Expand Up @@ -54,7 +63,8 @@ jobs:
file: Containerfiles/HorizonRXT-Containerfile
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/horizon-rxt:${{ github.event.inputs.release }}-ubuntu_jammy
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/horizon-rxt:${{ github.event.inputs.pluginTag }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION=${{ github.event.inputs.release }}
VERSION=${{ github.event.inputs.imageTag }}
PLUGIN_VERSION=${{ github.event.inputs.pluginTag }}
7 changes: 4 additions & 3 deletions Containerfiles/HorizonRXT-Containerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ARG VERSION=master
FROM openstackhelm/horizon:${VERSION}-ubuntu_jammy
RUN /var/lib/openstack/bin/pip install --constraint=https://releases.openstack.org/constraints/upper/${VERSION} \
ARG VERSION=master-ubuntu_jammy
FROM openstackhelm/horizon:${VERSION}
ARG PLUGIN_VERSION=master
RUN /var/lib/openstack/bin/pip install --constraint=https://releases.openstack.org/constraints/upper/${PLUGIN_VERSION} \
heat-dashboard \
octavia-dashboard

0 comments on commit 115f57b

Please sign in to comment.