Skip to content

feat: add CI build and Dockerfile #3

feat: add CI build and Dockerfile

feat: add CI build and Dockerfile #3

Workflow file for this run

name: Build
on:
push:
branches:
- main
- feat/cdk # remove before merging
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
env:
tag: todo
steps:
- uses: actions/checkout@v4
- run: |
tag=ghcr.io/opetushallitus/koto-rekisteri:$GITHUB_SHA
docker build -t $tag .
docker push $tag
- run: |
npm ci
npx cdk deploy --all
working-directory: infra