-
Notifications
You must be signed in to change notification settings - Fork 9
46 lines (41 loc) · 1.28 KB
/
container.yaml
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
43
44
45
46
name: container
on:
push:
branches:
- feat/infra/add-dockerfiles
- v[0-9]+\.[0-9]+\.[0-9]+
jobs:
build:
permissions:
contents: read
packages: write
runs-on: ${{ matrix.config.gh.runner }}
strategy:
matrix:
config:
- triple: x86_64-unknown-linux-musl
gh:
runner: ubuntu-22.04
container:
arch: amd64
pg_version: 15.5
os_version: alpine3.18
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v3
- uses: extractions/setup-just@v1
# - name: Switch docker buildx
# run: docker buildx create --name buildx --use
- name: registry login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: docker pull ghcr.io/vadosware/pg_idkit/base-pkg:pg15.5-alpine3.18-amd64
- name: build & push container image
run: just build-image push-image
env:
CONTAINER_IMAGE_ARCH: ${{ matrix.config.container.arch }}
POSTGRES_IMAGE_VERSION: ${{ matrix.config.container.pg_version }}
POSTGRES_OS_IMAGE_VERSION: ${{ matrix.config.container.os_version }}