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
76 changes: 45 additions & 31 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,53 @@
name: Build base images

on:
workflow_dispatch:
schedule:
- cron: '30 4 * * *'
- cron: '30 4 * * *'

jobs:
Base:
runs-on: "ubuntu-latest"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: "NumaryBot"
password: ${{ secrets.NUMARY_GITHUB_TOKEN }}
- name: Build and Push Base
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
context: .
file: ./base.Dockerfile
name: Base (${{ matrix.tag }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- tag: '22.04'
target: base
ubuntu-version: '22.04'
- tag: '24.04'
target: base
tags: ghcr.io/formancehq/base:22.04
- name: Build and Push Scratch
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
context: .
file: ./base.Dockerfile
ubuntu-version: '24.04'
- tag: '26.04'
target: base
ubuntu-version: '26.04'
- tag: scratch
target: scratch
tags: ghcr.io/formancehq/base:scratch
ubuntu-version: '24.04'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: NumaryBot
password: ${{ secrets.NUMARY_GITHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
pull: true
no-cache: true
context: .
file: ./base.Dockerfile
target: ${{ matrix.target }}
build-args: |
UBUNTU_VERSION=${{ matrix.ubuntu-version }}
tags: ghcr.io/formancehq/base:${{ matrix.tag }}
3 changes: 2 additions & 1 deletion base.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM ubuntu:24.04 AS base
ARG UBUNTU_VERSION=24.04
FROM ubuntu:${UBUNTU_VERSION} AS base
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y ca-certificates curl tzdata && rm -rf /var/lib/apt/lists/*

FROM alpine:3.22 AS certs
Expand Down
Loading