Skip to content

Commit 618df67

Browse files
committed
feat: add -testing variant with development tools
- Add Dockerfile.testing with git, openssh-client, build tools - Build both base and -testing variants in same workflow - Sync both variants to ECR Public
1 parent 5eccf2f commit 618df67

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ jobs:
4141
platforms: linux/amd64,linux/arm64
4242
tags: ${{ steps.meta.outputs.tags }}
4343

44+
- name: Build and push testing variant
45+
uses: docker/build-push-action@v6
46+
with:
47+
push: true
48+
context: .
49+
file: ./Dockerfile.testing
50+
platforms: linux/amd64,linux/arm64
51+
tags: polydice/base:${{ github.ref_name }}-testing
52+
4453
sync-to-ecr:
4554
name: Sync to ECR Public
4655
needs: build-and-push-docker-image
@@ -69,4 +78,7 @@ jobs:
6978
docker buildx imagetools create \
7079
--tag public.ecr.aws/z1n0q3w1/base:${{ github.ref_name }} \
7180
polydice/base:${{ github.ref_name }}
81+
docker buildx imagetools create \
82+
--tag public.ecr.aws/z1n0q3w1/base:${{ github.ref_name }}-testing \
83+
polydice/base:${{ github.ref_name }}-testing
7284
echo "Successfully synced to ECR Public"

Dockerfile.testing

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM polydice/base:0.32.0-rc5
2+
3+
RUN apt-get update \
4+
&& apt-get install -y --no-install-recommends \
5+
git \
6+
openssh-client \
7+
libpq-dev \
8+
libxml2-dev \
9+
libxslt1-dev \
10+
libsasl2-dev \
11+
libmcrypt-dev \
12+
build-essential \
13+
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)