Skip to content

chore(deps): bump the cdk group in /infra with 2 updates #43

chore(deps): bump the cdk group in /infra with 2 updates

chore(deps): bump the cdk group in /infra with 2 updates #43

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
concurrency: build-${{ github.ref }}
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Build and push Docker image
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
- run: docker push ghcr.io/opetushallitus/koto-rekisteri:$GITHUB_SHA
if: github.ref_name == 'main'
- name: Log in to dev
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-1
role-to-assume: arn:aws:iam::682033502734:role/kitu-github-actions-role
- name: Diff
if: github.ref_name != 'main'
run: |
npm ci
npx cdk diff --all --require-approval=never
working-directory: infra
- name: Deploy
if: github.ref_name == 'main'
run: |
npm ci
npx cdk deploy --all --require-approval=never
working-directory: infra