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
26 changes: 25 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,30 @@ on:

jobs:
image:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: ubuntu
image-name: python-base-ubuntu
from: ubuntu:22.04
- name: ubuntu-cloud-archive
image-name: python-base-ubuntu-cloud-archive
from: ghcr.io/vexxhost/ubuntu-cloud-archive:zed@sha256:9177b351fd29b2469e26a0235fb972106fd9409ffdc9527c848123627cd1fd40
- name: ubuntu-cloud-archive-legacy
image-name: python-base
from: ghcr.io/vexxhost/ubuntu-cloud-archive:zed@sha256:9177b351fd29b2469e26a0235fb972106fd9409ffdc9527c848123627cd1fd40
- name: debian
image-name: python-base-debian
from: debian:bullseye
- name: rockylinux
image-name: python-base-rockylinux
from: rockylinux:9
- name: almalinux
image-name: python-base-almalinux
from: almalinux:9
permissions:
contents: read
id-token: write
Expand All @@ -19,5 +42,6 @@ jobs:
steps:
- uses: vexxhost/docker-atmosphere/.github/actions/build-image@main
with:
image-name: python-base
image-name: ${{ matrix.image-name }}
build-args: FROM=${{ matrix.from }}
push: ${{ github.event_name != 'pull_request' }}
17 changes: 6 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
# SPDX-License-Identifier: GPL-3.0-or-later

FROM ghcr.io/vexxhost/ubuntu-cloud-archive:zed@sha256:9177b351fd29b2469e26a0235fb972106fd9409ffdc9527c848123627cd1fd40
ARG FROM

FROM ${FROM}
ENV PATH=/var/lib/openstack/bin:$PATH
RUN \
apt-get update -qq && \
apt-get install -qq -y --no-install-recommends \
ca-certificates \
libpython3.10 \
lsb-release \
python3-distutils \
sudo && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN --mount=type=bind,source=bindep.txt,target=/bindep.txt \
--mount=type=bind,from=ghcr.io/vexxhost/build-utils:latest,source=/bin,target=/build \
/build/install-bindep-packages
7 changes: 7 additions & 0 deletions bindep.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ca-certificates
libpython3.10 [platform:ubuntu]
libpython3.9 [platform:debian]
python3-libs [platform:redhat]
lsb-release [platform:dpkg]
python3-distutils [platform:dpkg]
sudo
Loading