-
Notifications
You must be signed in to change notification settings - Fork 3
30 lines (30 loc) · 1.05 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Publish Docker
on:
push:
paths:
- 'Docker/Dockerfile'
- '.github/workflows/publish.yml'
jobs:
publish-matter-extension-dependencies-image:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the matter_extension_dependencies Docker image
run: |
SiSDK="SiSDK-2024.06.2"
WiFiSDK="WiFiSDK-3.3.1"
VERSION="${SiSDK}_${WiFiSDK}"
docker build -f Integrations/docker/images/Dockerfile . --tag ghcr.io/siliconlabssoftware/matter_extension_dependencies:${VERSION}
docker run ghcr.io/siliconlabssoftware/matter_extension_dependencies:${VERSION}
docker push ghcr.io/siliconlabssoftware/matter_extension_dependencies:${VERSION}