Install ca-certificates #383
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Image Builder | |
on: | |
push: | |
# Build and publish: configure build via commit message | |
branches: | |
- master | |
- texlive-alpine | |
paths-ignore: | |
- '.dockerignore' | |
- '.github/FUNDING.yml' | |
- 'docs/*' | |
- 'LICENSE' | |
- 'README.md' | |
- 'SECURITY.md' | |
- 'release-checklist.md' | |
pull_request: | |
# Build, but don't push on pull requests | |
schedule: | |
- cron: '33 6 * * 1,4' | |
jobs: | |
configure: | |
name: Configure | |
runs-on: ubuntu-latest | |
outputs: | |
pandoc-version: ${{ steps.config.outputs.pandoc-version }} | |
stacks: ${{ steps.config.outputs.stacks }} | |
build: ${{ steps.config.outputs.build }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.after }} | |
- name: Configure build | |
id: config | |
run: | | |
pandoc_versions="['3.1.13']" | |
stacks="['alpine']" | |
build=true | |
printf "Setting outputs:\n" | |
printf " - pandoc-versions: %s\n" "$pandoc_versions" | |
printf " - stacks: %s\n" "$stacks" | |
printf " - build: %s\n" "$build" | |
printf 'pandoc-version=%s\n' "$pandoc_versions" >> $GITHUB_OUTPUT | |
printf 'stacks=%s\n' "$stacks" >> $GITHUB_OUTPUT | |
printf 'build=%s\n' "$build" >> $GITHUB_OUTPUT | |
# Build images and store them as tar archive | |
build: | |
if: ${{ fromJSON( needs.configure.outputs.build ) }} | |
name: Build | |
runs-on: ubuntu-latest | |
needs: configure | |
strategy: | |
fail-fast: false | |
matrix: | |
stack: ${{ fromJSON( needs.configure.outputs.stacks ) }} | |
version: ${{ fromJSON( needs.configure.outputs.pandoc-version ) }} | |
env: | |
PANDOC_VERSION: ${{ matrix.version }} | |
STACK: ${{ matrix.stack }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Show config | |
run: make show-args | |
- name: Build LaTeX image | |
if: ${{ matrix.stack != 'static' }} | |
run: make latex | |
- name: Build extra image | |
if: ${{ matrix.stack != 'static' }} | |
run: make extra | |
- name: Test core image | |
if: ${{ matrix.stack != 'static' }} | |
run: make test-core | |
- name: Test LaTeX image | |
if: ${{ matrix.stack != 'static' }} | |
run: make test-latex | |
- name: Test extra image | |
if: ${{ matrix.stack != 'static' }} | |
run: make test-extra | |
- name: Push | |
if: >- | |
(github.event_name == 'push' || github.event_name == 'schedule') && | |
github.repository == 'pandoc/dockerfiles' | |
run: | | |
# Log into registry | |
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | | |
docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin | |
make push-minimal | |
if [ "$STACK" != 'static' ]; then | |
make push-core | |
make push-latex | |
make push-extra | |
fi |