Skip to content

Commit 5f3f60e

Browse files
committed
SWPROT-8953: ci: github: Update CI files to configure UnifySDK
Token should be generated from github and added to project secrets Forwarded: #10 Relate-to: https://github.com/SiliconLabsSoftware/unify-z-wave/settings/secrets/actions Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
1 parent 937bde0 commit 5f3f60e

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/build-rootfs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ jobs:
2323
echo "describe=$(git describe --tags --always || echo 0)"
2424
| tee $GITHUB_OUTPUT
2525
- name: Setup and build
26-
run: |
27-
ARCH=${{ matrix.arch }} ./scripts/build-rootfs.sh
26+
run: >-
27+
ARCH=${{ matrix.arch }}
28+
UNIFYSDK_GIT_REPOSITORY=${{ secrets.UNIFYSDK_GIT_REPOSITORY }}
29+
UNIFYSDK_GIT_TAG=${{ secrets.UNIFYSDK_GIT_TAG }}
30+
./scripts/build-rootfs.sh
2831
- name: Upload artifacts
2932
uses: actions/upload-artifact@v4
3033
with:

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ jobs:
2121
echo "describe=$(git describe --tags --always || echo 0)"
2222
| tee $GITHUB_OUTPUT
2323
- name: Build Docker image from sources
24-
run: docker build --tag "${{ env.project-name }}:latest" .
24+
run: >-
25+
docker build
26+
--tag "${{ env.project-name }}:latest"
27+
--build-arg UNIFYSDK_GIT_REPOSITORY=${{ secrets.UNIFYSDK_GIT_REPOSITORY }}
28+
--build-arg UNIFYSDK_GIT_TAG=${{ secrets.UNIFYSDK_GIT_TAG }}
29+
.
2530
- name: Extract artifacts
2631
run: >-
2732
container=$(docker create "${{ env.project-name }}:latest")

0 commit comments

Comments
 (0)