-
Notifications
You must be signed in to change notification settings - Fork 13
52 lines (45 loc) · 1.27 KB
/
ci-builder-image.yml
File metadata and controls
52 lines (45 loc) · 1.27 KB
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
47
48
49
50
51
52
name: ci-builder-image
description: |
Build (and push) the CI builder image
on:
workflow_dispatch:
inputs:
cargo-pgrx-version:
required: false
type: string
default: "0.15.0"
description: |
version of cargo-pgrx to download (inside image build)
permissions:
contents: none
jobs:
builder-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
libc:
- gnu
- musl
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: extractions/setup-just@e33e0265a09d6d736e2ee1e0eb685ef1de4669ff # v3
- name: Log in to GHCR
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build builder image
env:
BUILDER_TYPE: ${{ matrix.libc }}
BUILDER_IMAGE_ARG_CARGO_PGRX_VERSION: ${{ inputs.cargo-pgrx-version }}
run: |
just build-builder-image
- name: Push builder image
env:
BUILDER_TYPE: ${{ matrix.libc }}
run: |
just push-builder-image