Skip to content

Commit 1a23384

Browse files
committed
publish
1 parent 22f1a33 commit 1a23384

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ jobs:
66
push_to_registry:
77
name: Push Docker image to GitHub Packages
88
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
debian_base: [bullseye, bookworm]
12+
env:
13+
DEBIAN_BASE: ${{ matrix.debian_base }}
914
steps:
1015
-
1116
name: Check out the repo
@@ -22,7 +27,10 @@ jobs:
2227
if [[ $GITHUB_REF == refs/tags/* ]]; then
2328
VERSION=${GITHUB_REF#refs/tags/}
2429
fi
25-
TAGS="${DOCKER_IMAGE}:${VERSION}"
30+
TAGS="${DOCKER_IMAGE}:${VERSION}-${DEBIAN_BASE}"
31+
if [ "${DEBIAN_BASE}" = "bullseye" ]; then
32+
TAGS="${TAGS} ${DOCKER_IMAGE}:latest"
33+
fi
2634
echo ::set-output name=version::${VERSION}
2735
echo ::set-output name=tags::${TAGS}
2836
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
@@ -45,6 +53,6 @@ jobs:
4553
context: .
4654
platforms: linux/amd64
4755
push: true
48-
tags: |
49-
revdotcom/fstalign:latest
50-
${{ steps.prep.outputs.tags }}
56+
build-args: |
57+
DEBIAN_BASE=${{ env.DEBIAN_BASE }}
58+
tags: ${{ steps.prep.outputs.tags }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ RUN --mount=type=cache,target=/root/.ccache,sharing=locked \
3232
rm -rf openfst-${OPENFST_VERSION} openfst-${OPENFST_VERSION}.tar.gz
3333

3434
# Stage 2: Build fstalign
35-
FROM debian:bookworm
35+
FROM debian:${DEBIAN_BASE}-slim
3636

3737
COPY --from=openfst-builder /opt/openfst /opt/openfst
3838
ENV OPENFST_ROOT /opt/openfst

0 commit comments

Comments
 (0)