Skip to content

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

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

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

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: |
docker build -t lambda-shell-base:tiny -f tiny.Dockerfile .
docker build -t lambda-shell-base:slim -f slim.Dockerfile .
docker build -t lambda-shell-base:full -f Dockerfile .
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GHCR_PAT: ${{ secrets.GHCR_PAT }}