Add semver versioning and split build/deploy workflows #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/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
|
||
| 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@v4 | ||
| - 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 }} | ||