-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (36 loc) · 1.32 KB
/
build-test-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build Test Image
on:
pull_request:
branches:
- main
merge_group:
types:
- checks_requested
jobs:
build:
name: Build Test Image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/[email protected]
- id: package-versions
run: echo "data=$(cat package-versions.json)" >> $GITHUB_OUTPUT
- id: docker_build
uses: docker/[email protected]
with:
context: .
push: false
load: true
tags: kineticcafe/sqitch-pgtap:test
build-args: |
ALPINE_VERSION=${{ fromJSON(steps.package-versions.outputs.data).alpine.version }}
PGTAP_VERSION=${{ fromJSON(steps.package-versions.outputs.data).pgtap.version }}
PG_PROVE_VERSION=${{ fromJSON(steps.package-versions.outputs.data).pg_prove.version }}
SQITCH_VERSION=${{ fromJSON(steps.package-versions.outputs.data).sqitch.version }}
__DOCKERFILE_VERSION__=${{ fromJSON(steps.package-versions.outputs.data).VERSION }}
__DOCKERFILE_DATE__=${{ fromJSON(steps.package-versions.outputs.data).DATE }}
cache-from: type=gha
cache-to: type=gha,mode=max
- run: ./kineticcafe-sqitch-pgtap version
env:
IMAGE: kineticcafe/sqitch-pgtap:test