Skip to content

Commit 2a17c10

Browse files
committed
chore(ci): build Docker images before semantic-release
1 parent fd860ae commit 2a17c10

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ jobs:
2626
restore-keys: |
2727
${{ runner.os }}-node-
2828
- run: npm ci
29+
- name: Build Docker images
30+
run: |
31+
echo "${{ secrets.GHCR_PAT }}" > github_token
32+
export DOCKER_BUILDKIT=1
33+
docker build --progress=plain --secret id=github_token,src=github_token -t lambda-shell-base:tiny -f tiny.Dockerfile .
34+
docker build --progress=plain --secret id=github_token,src=github_token -t lambda-shell-base:slim -f slim.Dockerfile .
35+
docker build --progress=plain --secret id=github_token,src=github_token -t lambda-shell-base:full -f Dockerfile .
36+
shell: bash
2937
- run: npx semantic-release
3038
env:
3139
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)