Skip to content

fixup some dependencies #169

fixup some dependencies

fixup some dependencies #169

Workflow file for this run

name: Build all images
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
defaults:
run:
shell: bash
jobs:
pre_build:
name: build base_image ${{ matrix.arch.name }}
strategy:
fail-fast: true
matrix:
arch:
- name: amd64
runner: ubuntu-24.04
- name: arm64
runner: passenger-ubuntu-24.04-arm64-4cpu
runs-on: ${{ matrix.arch.runner }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Purge containers
run: 'docker kill $(docker ps -q) || exit 0'
- name: Enable docker multiarch
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Run make build_base
run: make build_base
env:
BUILD_AMD64: ${{ fromJSON('[0, 1]')[matrix.arch.name == 'amd64'] }}
BUILD_ARM64: ${{ fromJSON('[0, 1]')[matrix.arch.name == 'arm64'] }}
- name: Export
run: make export_base
env:
BUILD_AMD64: ${{ fromJSON('[0, 1]')[matrix.arch.name == 'amd64'] }}
BUILD_ARM64: ${{ fromJSON('[0, 1]')[matrix.arch.name == 'arm64'] }}
- name: Log in to the Container registry
if: ${{ github.event.pull_request.merged || github.actor == 'CamJN' }}
uses: docker/login-action@v3
id: login
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to github container registry
if: ${{ success() && steps.login.conclusion != 'skipped' }}
run: make push_base
env:
BUILD_AMD64: ${{ fromJSON('[0, 1]')[matrix.arch.name == 'amd64'] }}
BUILD_ARM64: ${{ fromJSON('[0, 1]')[matrix.arch.name == 'arm64'] }}
build:
needs: pre_build
name: build ${{ matrix.img }} ${{ matrix.arch.name }}
strategy:
fail-fast: true
matrix:
img:
- full
- customizable
- nodejs
- jruby94
- jruby93
# - ruby35 # REL: 2025-12-25
- ruby34 # EOL: 2028-03-31
- ruby33 # EOL: 2027-03-31
- ruby32 # EOL: 2026-03-31
- ruby31 # EOL: 2025-03-31
# https://www.ruby-lang.org/en/downloads/branches/
- python313 # EOL: 2029-10-07
- python312 # EOL: 2028-10-02
- python311 # EOL: 2027-10-24
- python310 # EOL: 2026-10-04
- python39 # EOL: 2025-10-05
# https://devguide.python.org/versions/
arch:
- name: amd64
runner: ubuntu-24.04
- name: arm64
runner: passenger-ubuntu-24.04-arm64-4cpu
runs-on: ${{ matrix.arch.runner }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Purge containers
run: 'docker kill $(docker ps -q) || exit 0'
- name: Enable docker multiarch
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: "Run make build_${{ matrix.img }}"
run: "make build_${{ matrix.img }}"
env:
BUILD_AMD64: ${{ fromJSON('[0, 1]')[matrix.arch.name == 'amd64'] }}
BUILD_ARM64: ${{ fromJSON('[0, 1]')[matrix.arch.name == 'arm64'] }}
- name: Log in to the Container registry
if: ${{ github.event.pull_request.merged || github.actor == 'CamJN' }}
uses: docker/login-action@v3
id: login
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to github container registry
if: ${{ success() && steps.login.conclusion != 'skipped' }}
run: "make tag_latest_${{ matrix.img }} push_${{ matrix.img }}"
env:
BUILD_AMD64: ${{ fromJSON('[0, 1]')[matrix.arch.name == 'amd64'] }}
BUILD_ARM64: ${{ fromJSON('[0, 1]')[matrix.arch.name == 'arm64'] }}