TEST: test change, do not commit #771
Workflow file for this run
This file contains 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 OPC UA Monitoring Broker | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- .github/actions/build-component-per-arch/** | |
- .github/actions/build-component-multi-arch/** | |
- .github/workflows/build-opcua-monitoring-broker-container.yml | |
- build/containers/Dockerfile.opcua-monitoring-broker | |
- samples/brokers/opcua-monitoring-broker/** | |
- version.txt | |
- build/akri-containers.mk | |
- build/akri-dotnet-containers.mk | |
- Makefile | |
pull_request: | |
branches: [ main ] | |
paths: | |
- .github/actions/build-component-per-arch/** | |
- .github/actions/build-component-multi-arch/** | |
- .github/workflows/build-opcua-monitoring-broker-container.yml | |
- build/containers/Dockerfile.opcua-monitoring-broker | |
- samples/brokers/opcua-monitoring-broker/** | |
- version.txt | |
- build/akri-containers.mk | |
- build/akri-dotnet-containers.mk | |
- Makefile | |
release: | |
types: | |
- published | |
env: | |
AKRI_COMPONENT: opcua-monitoring-broker | |
MAKEFILE_COMPONENT: opcua-monitoring | |
jobs: | |
per-arch: | |
runs-on: ubuntu-latest | |
timeout-minutes: 40 | |
strategy: | |
matrix: | |
arch: | |
- arm64v8 | |
- arm32v7 | |
- amd64 | |
steps: | |
- name: Checkout the head commit of the branch | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Prepare To Install | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 12 | |
- name: Install Deps | |
run: | | |
yarn install | |
yarn add @actions/core @actions/github @actions/exec fs | |
- name: Run Per-Arch component build for ${{ env.AKRI_COMPONENT }} | |
uses: ./.github/actions/build-component-per-arch | |
with: | |
github_event_name: ${{ github.event_name }} | |
github_ref: ${{ github.ref }} | |
github_event_action: ${{ github.event.action }} | |
github_merged: ${{ github.event.pull_request.merged }} | |
container_name: ${{ env.AKRI_COMPONENT }} | |
container_prefix: ghcr.io/project-akri/akri | |
container_registry_base_url: ghcr.io | |
container_registry_username: ${{ secrets.crUsername }} | |
container_registry_password: ${{ secrets.crPassword }} | |
makefile_component_name: ${{ env.MAKEFILE_COMPONENT }} | |
platform: ${{ matrix.arch }} | |
build_rust: "0" | |
multi-arch: | |
if: (github.event_name == 'release') || (github.event_name == 'push' && github.ref == 'refs/heads/main') || (startsWith(github.event_name, 'pull_request') && github.event.action == 'closed' && github.event.pull_request.merged == true && github.ref != 'refs/heads/main') | |
needs: per-arch | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Prepare To Install | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 12 | |
- name: Install Deps | |
run: | | |
yarn install | |
yarn add @actions/core @actions/github @actions/exec fs | |
- name: Run Multi-Arch component build for ${{ env.AKRI_COMPONENT }} | |
uses: ./.github/actions/build-component-multi-arch | |
with: | |
github_event_name: ${{ github.event_name }} | |
container_name: ${{ env.AKRI_COMPONENT }} | |
container_prefix: ghcr.io/project-akri/akri | |
container_registry_base_url: ghcr.io | |
container_registry_username: ${{ secrets.crUsername }} | |
container_registry_password: ${{ secrets.crPassword }} | |
makefile_component_name: ${{ env.MAKEFILE_COMPONENT }} |