Skip to content

Commit

Permalink
feat: deploy all containers and add OpenStack 2024.1 (#4)
Browse files Browse the repository at this point in the history
* fix: avoid storing tmp cache bits for pip

Signed-off-by: Doug Goldstein <doug.goldstein@rackspace.com>

* ci: build all the containers on deploy

Signed-off-by: Doug Goldstein <doug.goldstein@rackspace.com>

* ci: ensure the right registry is always used

Signed-off-by: Doug Goldstein <doug.goldstein@rackspace.com>

* feat: build OpenStack 2024.1 container

Signed-off-by: Doug Goldstein <doug.goldstein@rackspace.com>

* ci: skip the need for a checkout

buildx will use the git context and not need a checkout in the runner.

Signed-off-by: Doug Goldstein <doug.goldstein@rackspace.com>

* ci: set annotations on the containers as well

Signed-off-by: Doug Goldstein <doug.goldstein@rackspace.com>

---------

Signed-off-by: Doug Goldstein <doug.goldstein@rackspace.com>
  • Loading branch information
cardoe authored Apr 26, 2024
1 parent d339923 commit 41d2bcd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,6 @@ name: Create and publish a Docker image
# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
workflow_dispatch:
inputs:
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

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
Expand All @@ -24,13 +14,17 @@ env:
jobs:
build-and-push-image:
runs-on: ubuntu-latest

strategy:
matrix:
openstack: [2023.1, 2023.2, 2024.1]
distro: [ubuntu_jammy]

# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
Expand All @@ -50,9 +44,9 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true
tags: "ghcr.io/${{ env.IMAGE_NAME }}:${{ github.event.inputs.imageTag }}"
tags: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.openstack }}-${{ matrix.distro }}"
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}
build-args: |
VERSION=${{ github.event.inputs.imageTag }}
VERSION=${{ matrix.openstack }}-${{ matrix.distro }
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ARG VERSION=master-ubuntu_jammy
FROM openstackhelm/keystone:$VERSION
RUN /var/lib/openstack/bin/pip install keystone-rxt
RUN /var/lib/openstack/bin/pip install --no-cache-dir keystone-rxt

0 comments on commit 41d2bcd

Please sign in to comment.