Skip to content

Add semver versioning and split build/deploy workflows #9

Add semver versioning and split build/deploy workflows

Add semver versioning and split build/deploy workflows #9

Workflow file for this run

name: Build easytrade on PR
on:
pull_request:
branches:
- main
workflow_call:
secrets:
SNYK_API_TOKEN:
required: true
env:
CONTAINER_REGISTRY: europe-docker.pkg.dev/dynatrace-demoability/docker/easytrade
HELM_CHART_PATH: helm/easytrade
jobs:
snyk:
uses: ./.github/workflows/reusable-snyk.yaml
permissions:
security-events: write
contents: read
actions: read
secrets:
SNYK_API_TOKEN: ${{ secrets.SNYK_API_TOKEN }}
calc-version:
uses: Dynatrace/easytrade-infrastructure/.github/workflows/calc-version.yaml@actions

Check failure on line 27 in .github/workflows/build-pr.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-pr.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/build-pr.yaml" -> "Dynatrace/easytrade-infrastructure/.github/workflows/calc-version.yaml@actions" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
build-easytrade:
runs-on: ubuntu-24.04
needs: calc-version
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Build easytrade without pushing to docker repository
uses: ./.github/actions/build-push-images
with:
push: false
tag: ${{ needs.calc-version.outputs.version }}
registry: ${{ env.CONTAINER_REGISTRY }}
build-helm-chart:
runs-on: ubuntu-24.04
needs: calc-version
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Build Helm chart
uses: ./.github/actions/build-push-helm
with:
chart-path: ${{ env.HELM_CHART_PATH }}
push: false
version: ${{ needs.calc-version.outputs.version }}