Skip to content

feat: readd dependency-graph #73

feat: readd dependency-graph

feat: readd dependency-graph #73

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'
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
with:
directory: server
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
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
deploy_prod:
name: Deploy to prod
needs: deploy_test
uses: ./.github/workflows/deploy-env.yml
with:
env: prod
account_id: 515966535475