Skip to content

It's too hard to keep everything updated by hand #39

It's too hard to keep everything updated by hand

It's too hard to keep everything updated by hand #39

Workflow file for this run

name: It's too hard to keep everything updated by hand
on:
schedule:
- cron: '0 0 * * 6'
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
list-missing-versions:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.list.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: List versions
id: list
run: deno run -A ./ci/list_versions_to_build.ts >> "$GITHUB_OUTPUT"
build-docker-images:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs: list-missing-versions
strategy:
fail-fast: true
max-parallel: 1
matrix:
version: ${{ fromJSON(needs.list-missing-versions.outputs.version) }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}},value=${{ matrix.version }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
build-args: ALPINE_VERSION=${{ matrix.version }}
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}