Skip to content

Commit 55157b0

Browse files
author
Ramkumar Chinchani
committed
ci: enable freebsd container image builds
Signed-off-by: Ramkumar Chinchani <[email protected]>
1 parent 044ea85 commit 55157b0

File tree

6 files changed

+17
-6
lines changed

6 files changed

+17
-6
lines changed

.github/workflows/publish.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
packages: write
1717
strategy:
1818
matrix:
19-
os: [linux, darwin]
19+
os: [linux, darwin, freebsd]
2020
arch: [amd64, arm64]
2121
steps:
2222
- name: Check out the repo
@@ -27,6 +27,13 @@ jobs:
2727
registry: ghcr.io
2828
username: ${{ github.actor }}
2929
password: ${{ secrets.GITHUB_TOKEN }}
30+
- name: Setup build vars
31+
run: |
32+
if [ ${{ matrix.os }} == "freebsd" ]; then
33+
echo "BASE_IMAGE=dougrabson/freebsd-minimal:13" >> $GITHUB_ENV
34+
else
35+
echo "BASE_IMAGE=gcr.io/distroless/base:latest-${{ matrix.arch }}" >> $GITHUB_ENV
36+
fi
3037
- name: Build and push zot container image
3138
uses: project-stacker/stacker-build-push-action@main
3239
with:
@@ -37,6 +44,7 @@ jobs:
3744
OS=${{ matrix.os }}
3845
ARCH=${{ matrix.arch }}
3946
REPO_NAME=zot-${{ matrix.os }}-${{ matrix.arch }}
47+
BASE_IMAGE=${{ env.BASE_IMAGE }}
4048
url: docker://ghcr.io/${{ github.repository_owner }}
4149
tags: ${{ github.event.release.tag_name }} latest
4250
username: ${{ github.actor }}
@@ -84,6 +92,7 @@ jobs:
8492
ARCH=${{ matrix.arch }}
8593
EXT=-minimal
8694
REPO_NAME=zot-minimal-${{ matrix.os }}-${{ matrix.arch }}
95+
BASE_IMAGE=${{ env.BASE_IMAGE }}
8796
url: docker://ghcr.io/${{ github.repository_owner }}
8897
tags: ${{ github.event.release.tag_name }} latest
8998
username: ${{ github.actor }}
@@ -130,6 +139,7 @@ jobs:
130139
OS=${{ matrix.os }}
131140
ARCH=${{ matrix.arch }}
132141
REPO_NAME=zxp-${{ matrix.os }}-${{ matrix.arch }}
142+
BASE_IMAGE=${{ env.BASE_IMAGE }}
133143
url: docker://ghcr.io/${{ github.repository_owner }}
134144
tags: ${{ github.event.release.tag_name }} latest
135145
username: ${{ github.actor }}
@@ -176,6 +186,7 @@ jobs:
176186
OS=${{ matrix.os }}
177187
ARCH=${{ matrix.arch }}
178188
REPO_NAME=zb-${{ matrix.os }}-${{ matrix.arch }}
189+
BASE_IMAGE=${{ env.BASE_IMAGE }}
179190
url: docker://ghcr.io/${{ github.repository_owner }}
180191
tags: ${{ github.event.release.tag_name }} latest
181192
username: ${{ github.actor }}

build/stacker-conformance.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ build:
4646
arch: ${{ARCH}}
4747
from:
4848
type: docker
49-
url: docker://gcr.io/distroless/base:latest-${{ARCH}}
49+
url: docker://${{BASE_IMAGE}}
5050
overlay_dirs:
5151
- source: ../.build/${{REPO_NAME}}/binary
5252
dest: /usr/local/bin

build/stacker-minimal.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ build:
4545
arch: ${{ARCH}}
4646
from:
4747
type: docker
48-
url: docker://gcr.io/distroless/base:latest-${{ARCH}}
48+
url: docker://${{BASE_IMAGE}}
4949
overlay_dirs:
5050
- source: ../.build/${{REPO_NAME}}/binary
5151
dest: /usr/local/bin

build/stacker-zb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ build:
2424
arch: ${{ARCH}}
2525
from:
2626
type: docker
27-
url: docker://gcr.io/distroless/base:latest-${{ARCH}}
27+
url: docker://${{BASE_IMAGE}}
2828
overlay_dirs:
2929
- source: ../.build/${{REPO_NAME}}/binary
3030
dest: /usr/local/bin

build/stacker-zxp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ build:
4444
arch: ${{ARCH}}
4545
from:
4646
type: docker
47-
url: docker://gcr.io/distroless/base:latest-${{ARCH}}
47+
url: docker://${{BASE_IMAGE}}
4848
overlay_dirs:
4949
- source: ../.build/${{REPO_NAME}}/binary
5050
dest: /usr/local/bin

build/stacker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ build:
5959
arch: ${{ARCH}}
6060
from:
6161
type: docker
62-
url: docker://gcr.io/distroless/base:latest-${{ARCH}}
62+
url: docker://${{BASE_IMAGE}}
6363
overlay_dirs:
6464
- source: ../.build/${{REPO_NAME}}/binary
6565
dest: /usr/local/bin

0 commit comments

Comments
 (0)