Skip to content

Commit f0adeef

Browse files
Moving us to github container registry (project-chip#27879)
Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 44513fa commit f0adeef

File tree

271 files changed

+662
-1025
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

271 files changed

+662
-1025
lines changed

.devcontainer/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
ARG BUILD_VERSION
1616

1717
# All tools required for compilation belong in chip-build, forms "truth" for CHIP build tooling
18-
FROM connectedhomeip/chip-build-vscode:${BUILD_VERSION}
18+
FROM ghcr.io/project-chip/chip-build-vscode:${BUILD_VERSION}
19+
LABEL org.opencontainers.image.source https://github.com/project-chip/connectedhomeip
1920

2021
# This Dockerfile contains things useful for an interactive development environment
2122
ARG USERNAME=vscode

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"mounts": [
1515
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
1616
],
17-
"initializeCommand": ".devcontainer/build.sh --tag matter-dev-environment:local --version 0.7.25",
17+
"initializeCommand": ".devcontainer/build.sh --tag matter-dev-environment:local --version 1",
1818
"image": "matter-dev-environment:local",
1919
"remoteUser": "vscode",
2020
"customizations": {

.github/.wordlist.txt

+1
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ getManualTests
590590
getstarted
591591
getTests
592592
GH
593+
ghcr
593594
ghp
594595
githubusercontent
595596
gitignore

.github/workflows/bloat_check.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ubuntu-latest
3434

3535
container:
36-
image: connectedhomeip/chip-build:0.7.25
36+
image: ghcr.io/project-chip/chip-build:1
3737

3838
steps:
3939
- name: Checkout

.github/workflows/build.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
if: github.actor != 'restyled-io[bot]'
4141

4242
container:
43-
image: connectedhomeip/chip-build:0.7.25
43+
image: ghcr.io/project-chip/chip-build:1
4444
volumes:
4545
- "/tmp/log_output:/tmp/test_logs"
4646
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
@@ -131,7 +131,7 @@ jobs:
131131
if: github.actor != 'restyled-io[bot]'
132132

133133
container:
134-
image: connectedhomeip/chip-build:0.7.25
134+
image: ghcr.io/project-chip/chip-build:1
135135
volumes:
136136
- "/tmp/log_output:/tmp/test_logs"
137137
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
@@ -275,7 +275,7 @@ jobs:
275275
if: github.actor != 'restyled-io[bot]'
276276

277277
container:
278-
image: connectedhomeip/chip-build:0.7.25
278+
image: ghcr.io/project-chip/chip-build:1
279279
volumes:
280280
- "/tmp/log_output:/tmp/test_logs"
281281
options: --sysctl "net.ipv6.conf.all.disable_ipv6=0
@@ -397,7 +397,7 @@ jobs:
397397
if: github.actor != 'restyled-io[bot]'
398398

399399
container:
400-
image: connectedhomeip/chip-build:0.7.25
400+
image: ghcr.io/project-chip/chip-build:1
401401
volumes:
402402
- "/tmp/log_output:/tmp/test_logs"
403403
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0

.github/workflows/chef.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
if: github.actor != 'restyled-io[bot]'
3434

3535
container:
36-
image: connectedhomeip/chip-build:0.7.25
36+
image: ghcr.io/project-chip/chip-build:1
3737
options: --user root
3838

3939
steps:
@@ -54,7 +54,7 @@ jobs:
5454
if: github.actor != 'restyled-io[bot]'
5555

5656
container:
57-
image: connectedhomeip/chip-build-esp32:0.7.25
57+
image: ghcr.io/project-chip/chip-build-esp32:1
5858
options: --user root
5959

6060
steps:
@@ -75,7 +75,7 @@ jobs:
7575
if: github.actor != 'restyled-io[bot]'
7676

7777
container:
78-
image: connectedhomeip/chip-build-nrf-platform:0.7.25
78+
image: ghcr.io/project-chip/chip-build-nrf-platform:1
7979
options: --user root
8080

8181
steps:

.github/workflows/cirque.yaml

-127
This file was deleted.

.github/workflows/docker_img.yaml

+122-14
Original file line numberDiff line numberDiff line change
@@ -15,50 +15,158 @@
1515
name: Docker CHIP images
1616

1717
on:
18+
workflow_call:
19+
inputs:
20+
push_images:
21+
required: false
22+
type: boolean
23+
default: false
1824
push:
1925
paths:
20-
- "integrations/docker/images/**"
26+
- "integrations/docker/**"
2127
pull_request:
2228
paths:
23-
- "integrations/docker/images/**"
29+
- "integrations/docker/**"
2430
workflow_dispatch:
25-
31+
inputs:
32+
push_images:
33+
required: false
34+
type: boolean
35+
default: false
36+
2637
jobs:
27-
build_images:
28-
name: Build Docker CHIP Build images
38+
build_images_base:
39+
name: Build Docker CHIP Build images - base
2940
runs-on: ubuntu-latest
3041
if: github.actor != 'restyled-io[bot]'
3142
strategy:
3243
fail-fast: false
3344
matrix:
3445
img:
3546
- ""
36-
- "-ameba"
37-
- "-android"
38-
- "-cirque"
47+
- "-minimal"
48+
steps:
49+
- name: Checkout
50+
uses: actions/checkout@v3
51+
- name: Build images using project bash script
52+
if: ${{ inputs.push_images == true }}
53+
run: |
54+
cd integrations/docker/images/base/chip-build${{ matrix.img }}
55+
./build.sh --latest --push
56+
- name: Build & Push images using project bash script
57+
if: ${{ inputs.push_images == false }}
58+
run: |
59+
cd integrations/docker/images/base/chip-build${{ matrix.img }}
60+
./build.sh --latest
61+
build_images_stage_1:
62+
needs: [build_images_base]
63+
name: Build Docker CHIP Build images - stage 1
64+
runs-on: ubuntu-latest
65+
if: github.actor != 'restyled-io[bot]'
66+
strategy:
67+
fail-fast: false
68+
matrix:
69+
img:
3970
- "-crosscompile"
71+
steps:
72+
- name: Checkout
73+
uses: actions/checkout@v3
74+
- name: Build images using project bash script
75+
if: ${{ inputs.push_images == true }}
76+
run: |
77+
cd integrations/docker/images/stage-1/chip-build${{ matrix.img }}
78+
./build.sh --latest --push
79+
- name: Build & Push images using project bash script
80+
if: ${{ inputs.push_images == false }}
81+
run: |
82+
cd integrations/docker/images/stage-1/chip-build${{ matrix.img }}
83+
./build.sh --latest
84+
build_images_stage_2:
85+
needs: [build_images_base, build_images_stage_1]
86+
name: Build Docker CHIP Build images - stage 2
87+
runs-on: ubuntu-latest
88+
if: github.actor != 'restyled-io[bot]'
89+
strategy:
90+
fail-fast: false
91+
matrix:
92+
img:
93+
- "-ameba"
94+
- "-asr"
95+
- "-bouffalolab"
4096
- "-doxygen"
4197
- "-efr32"
4298
- "-esp32"
43-
- "-esp32-qemu"
4499
- "-infineon"
45100
# NOTE: imx image requires too much space for GitHub-hosted runners. It fails with:
46101
# ApplyLayer exit status 1 stdout: stderr: write /opt/fsl-imx-xwayland/5.15-kirkstone/sysroots/armv8a-poky-linux/opt/ltp/testcases/bin/fanotify15: no space left on device
47102
# - "-imx"
103+
- "-java"
48104
- "-k32w"
49105
- "-mbed-os"
50106
- "-nrf-platform"
51107
- "-telink"
52108
- "-ti"
53109
- "-tizen"
54-
- "-tizen-qemu"
55110
- "-openiotsdk"
56-
# NOTE: vscode image consumes ~52 GB disk space but GitHub-hosted runners provide ~10 GB free disk space(https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources)
57-
#- "-vscode"
58111
steps:
59112
- name: Checkout
60113
uses: actions/checkout@v3
61-
- name: Build All images using project bash script
114+
- name: Build images using project bash script
115+
if: ${{ inputs.push_images == true }}
116+
run: |
117+
cd integrations/docker/images/stage-2/chip-build${{ matrix.img }}
118+
./build.sh --latest --push
119+
- name: Build & Push images using project bash script
120+
if: ${{ inputs.push_images == false }}
121+
run: |
122+
cd integrations/docker/images/stage-2/chip-build${{ matrix.img }}
123+
./build.sh --latest
124+
125+
build_images_stage_3:
126+
needs: [build_images_base, build_images_stage_1, build_images_stage_2]
127+
name: Build Docker CHIP Build images - stage 3
128+
runs-on: ubuntu-latest
129+
if: github.actor != 'restyled-io[bot]'
130+
strategy:
131+
fail-fast: false
132+
matrix:
133+
img:
134+
- "-android"
135+
- "-esp32-qemu"
136+
- "-tizen-qemu"
137+
steps:
138+
- name: Checkout
139+
uses: actions/checkout@v3
140+
- name: Build images using project bash script
141+
if: ${{ inputs.push_images == true }}
142+
run: |
143+
cd integrations/docker/images/stage-3/chip-build${{ matrix.img }}
144+
./build.sh --latest --push
145+
- name: Build & Push images using project bash script
146+
if: ${{ inputs.push_images == false }}
147+
run: |
148+
cd integrations/docker/images/stage-3/chip-build${{ matrix.img }}
149+
./build.sh --latest
150+
build_images_vscode:
151+
needs: [build_images_base, build_images_stage_1, build_images_stage_2, build_images_stage_3]
152+
name: Build Docker CHIP Build images - vscode
153+
runs-on: ubuntu-latest
154+
if: github.actor != 'restyled-io[bot]' && false
155+
strategy:
156+
fail-fast: false
157+
matrix:
158+
img:
159+
- "-vscode"
160+
steps:
161+
- name: Checkout
162+
uses: actions/checkout@v3
163+
- name: Build images using project bash script
164+
if: ${{ inputs.push_images == true }}
165+
run: |
166+
cd integrations/docker/images/vscode/chip-build${{ matrix.img }}
167+
./build.sh --latest --push
168+
- name: Build & Push images using project bash script
169+
if: ${{ inputs.push_images == false }}
62170
run: |
63-
cd integrations/docker/images/chip-build${{ matrix.img }}
171+
cd integrations/docker/images/vscode-3/chip-build${{ matrix.img }}
64172
./build.sh --latest

0 commit comments

Comments
 (0)