Skip to content

chore(ci): build Docker images before semantic-release #11

chore(ci): build Docker images before semantic-release

chore(ci): build Docker images before semantic-release #11

Workflow file for this run

name: Release
on:
push:
branches:
- develop
- main
permissions:
contents: write
issues: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- name: Build Docker images
run: |
echo "${{ secrets.GHCR_PAT }}" > github_token
export DOCKER_BUILDKIT=1
docker build --progress=plain --secret id=github_token,src=github_token -t lambda-shell-base:tiny -f tiny.Dockerfile .
docker build --progress=plain --secret id=github_token,src=github_token -t lambda-shell-base:slim -f slim.Dockerfile .
docker build --progress=plain --secret id=github_token,src=github_token -t lambda-shell-base:full -f Dockerfile .
shell: bash
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GHCR_PAT: ${{ secrets.GHCR_PAT }}