Skip to content

Merge branch 'main' into task/thdubois/SWPROT-9430/update-get-node-nl… #24

Merge branch 'main' into task/thdubois/SWPROT-9430/update-get-node-nl…

Merge branch 'main' into task/thdubois/SWPROT-9430/update-get-node-nl… #24

Workflow file for this run

# YAML -*- mode: yaml; tab-width: 2; indent-tabs-mode: nil; coding: utf-8 -*-
# SPDX-License-Identifier: Zlib
# SPDX-FileCopyrightText: Silicon Laboratories Inc. https://www.silabs.com
---
name: build
on: # yamllint disable-line rule:truthy
push:
jobs:
build:
env:
project-name: z-wave-protocol-controller # Align to docker (lowercase)
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- id: describe
name: Describe HEAD
run: >-
echo "describe=$(git describe --tags --always || echo 0)"
| tee $GITHUB_OUTPUT
- name: Build Docker image from sources
run: >-
df -h
&&
docker build
--tag "${{ env.project-name }}:latest"
--build-arg
UNIFYSDK_GIT_REPOSITORY=${{ secrets.UNIFYSDK_GIT_REPOSITORY }}
--build-arg
UNIFYSDK_GIT_TAG=${{ secrets.UNIFYSDK_GIT_TAG }}
.
&&
df -h
- name: Upload container image
uses: ishworkh/[email protected]
with:
image: "${{ env.project-name }}:latest"
retention_days: 10
- name: Extract artifacts
run: >-
container=$(docker create "${{ env.project-name }}:latest")
&& docker cp
${container}:/usr/local/opt/${{ env.project-name }}/dist .
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
# yamllint disable-line
name: ${{ github.event.repository.name }}-${{ steps.describe.outputs.describe }}
path: dist/