Skip to content

Update alpine Docker tag to v3.20.1 #192

Update alpine Docker tag to v3.20.1

Update alpine Docker tag to v3.20.1 #192

Workflow file for this run

name: Test
on:
pull_request:
push:
branches:
- main
concurrency:
# Terminate all previous runs of the same workflow for pull requests
group: test-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
builder:
- autoconf
- meson
name: Test ${{ matrix.builder }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
- name: Build Dockerfile
uses: docker/build-push-action@f6010ea70151369b06f0194be1051fbbdff851b2 # v6.0.2
with:
context: .
load: true
push: false
tags: buildfarm-client:alpine
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
repository: postgres/postgres
path: source
- id: postgres
run: echo "commit=$(git -C source rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
- uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
id: restore-cache
with:
path: build
key: test-alpine-${{ matrix.builder }}-${{ steps.postgres.outputs.commit }}
restore-keys: test-alpine-${{ matrix.builder }}-
- name: Test ${{ matrix.builder }}.conf
run: |
mkdir -p build
docker run --rm \
-v ./build:/mnt/build \
-v ./source:/mnt/source \
-u "$(id -u):$(id -g)" \
buildfarm-client:alpine \
--test \
--config ${{ matrix.builder }}.conf
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
if: always()
with:
name: ${{ matrix.builder }}-logs
path: build/**/*.log
if-no-files-found: error
- uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
if: github.ref == 'refs/heads/main'
with:
path: build
key: test-alpine-${{ matrix.builder }}-${{ steps.postgres.outputs.commit }}