Skip to content

Updating workflows

Updating workflows #9

Workflow file for this run

---
name: Pull Request Build, Tag, & Push
on:
pull_request:
branches:
- develop
- main
- master
types:
- opened
- reopened
- synchronize
- closed
# Defaults to building for linux/amd64. Can modify be updating variable, e.g. PLATFORMS: 'linux/amd64,linux/arm64/v8'
env:
PLATFORMS: 'linux/amd64,linux/arm64/v8'
jobs:
set-platforms:
runs-on: ubuntu-latest
steps:
- name: Set platforms
id: set-platforms
run: echo "platforms=linux/amd64,linux/arm64/v8" >> $GITHUB_ENV
build-develop-open:
if: github.base_ref == 'develop' && github.event.pull_request.merged == false
uses: kbase/.github/.github/workflows/reusable_build.yml@multi-target
with:
platforms: ${{ env.platforms }}

Check failure on line 28 in .github/workflows/pr_build.yml

View workflow run for this annotation

GitHub Actions / Pull Request Build, Tag, & Push

Invalid workflow file

The workflow is not valid. .github/workflows/pr_build.yml (Line: 28, Col: 18): Unrecognized named-value: 'env'. Located at position 1 within expression: env.platforms .github/workflows/pr_build.yml (Line: 36, Col: 18): Unrecognized named-value: 'env'. Located at position 1 within expression: env.platforms
secrets: inherit
build-develop-merge:
if: github.base_ref == 'develop' && github.event.pull_request.merged == true
uses: kbase/.github/.github/workflows/reusable_build-push.yml@multi-target
with:
name: '${{ github.event.repository.name }}-develop'
tags: pr-${{ github.event.number }},latest
platforms: ${{ env.platforms }}
secrets: inherit
build-main-open:
if: (github.base_ref == 'main' || github.base_ref == 'master') && github.event.pull_request.merged == false
uses: kbase/.github/.github/workflows/reusable_build-push.yml@multi-target
with:
name: '${{ github.event.repository.name }}'
tags: pr-${{ github.event.number }}
platforms: ${{ env.platforms }}
secrets: inherit
build-main-merge:
if: (github.base_ref == 'main' || github.base_ref == 'master') && github.event.pull_request.merged == true
uses: kbase/.github/.github/workflows/reusable_build-push.yml@multi-target
with:
name: '${{ github.event.repository.name }}'
tags: pr-${{ github.event.number }},latest-rc
platforms: ${{ env.platforms }}
secrets: inherit
trivy-scans:
if: (github.base_ref == 'develop' || github.base_ref == 'main' || github.base_ref == 'master' ) && github.event.pull_request.merged == false
uses: kbase/.github/.github/workflows/reusable_trivy-scans.yml@multi-target
secrets: inherit