Skip to content

ci-docs

ci-docs #12

Workflow file for this run

name: ci-docs
on:
schedule:
# https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07
# This is meant to run at 14:17 UTC on 11th and 26th of every month
- cron: '17 14 11 * *'
- cron: '17 14 26 * *'
push:
branches:
- main
paths:
- '.github/actions/build-ci-image/**'
- '.github/actions/merge-ci-images/**'
- '.github/workflows/ci-docs.yml'
- 'ci/docs/**'
workflow_dispatch:
env:
REGISTRY_IMAGE: libfn/ci-docs
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: .github
- uses: ./.github/actions/build-ci-image
with:
platform: ${{ matrix.platform }}
image: ${{ env.REGISTRY_IMAGE }}
tags: |
type=schedule,pattern={{date 'YYYYMMDD'}}
type=raw,value=latest,enable={{is_default_branch}}
type=sha
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
context: "ci/docs"
title: "docs"
merge:
runs-on: ubuntu-latest
needs:
- build
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: .github
- uses: ./.github/actions/merge-ci-images
with:
image: ${{ env.REGISTRY_IMAGE }}
tags: |
type=schedule,pattern={{date 'YYYYMMDD'}}
type=raw,value=latest,enable={{is_default_branch}}
type=sha
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
title: "docs"