Skip to content

feat: add CI build and Dockerfile #6

feat: add CI build and Dockerfile

feat: add CI build and Dockerfile #6

Workflow file for this run

name: Build
on:
push:
branches:
- main
- feat/cdk
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- run: |
tag=ghcr.io/opetushallitus/koto-rekisteri:$GITHUB_SHA
docker build -t $tag .
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
docker push $tag
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-1
- run: |
npm ci
npx cdk deploy --all
working-directory: infra