Skip to content

Update alpine Docker tag to v3.21.2 #280

Update alpine Docker tag to v3.21.2

Update alpine Docker tag to v3.21.2 #280

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
- name: Build Dockerfile
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
with:
context: .
load: true
push: false
tags: buildfarm-client:alpine
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: postgres/postgres
path: source
- id: postgres
run: echo "commit=$(git -C source rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
- uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
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@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: always()
with:
name: ${{ matrix.builder }}-logs
path: build/**/*.log
if-no-files-found: error
- uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
if: github.ref == 'refs/heads/main'
with:
path: build
key: test-alpine-${{ matrix.builder }}-${{ steps.postgres.outputs.commit }}