Skip to content

fix: pipeline

fix: pipeline #58

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
steps:
- uses: actions/checkout@v4
- name: Build frontend
run: npm run build
with:

Check failure on line 23 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 23, Col: 7): Unexpected value 'with'
path: ./frontend
- name: Move built frontend to maven
run: mv frontend/out server/target/classes/static
- 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'
deploy_dev:
name: Deploy to dev
needs: build
uses: ./.github/workflows/deploy-env.yml
with:
env: dev
account_id: 682033502734
deploy_test:
name: Deploy to test
needs: deploy_dev
uses: ./.github/workflows/deploy-env.yml
with:
env: test
account_id: 961341546901