Skip to content

Add .mise.toml and README instructions #55

Add .mise.toml and README instructions

Add .mise.toml and README instructions #55

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 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