Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving us to github container registry #27879

Merged
merged 43 commits into from
Jul 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
dd4e53e
Initial Commit
woody-apple Jul 11, 2023
fba4290
Fixing this job
woody-apple Jul 11, 2023
f820c5e
Removing, and revoking this token
woody-apple Jul 11, 2023
d399f9a
This didn't work
woody-apple Jul 11, 2023
8bd09d9
Updating to all
woody-apple Jul 11, 2023
fd93981
Fixing paths
woody-apple Jul 11, 2023
d138611
Fixing version locations
woody-apple Jul 11, 2023
0c1c29f
Restyled by whitespace
restyled-commits Jul 11, 2023
ff93510
Restyled by prettier-json
restyled-commits Jul 11, 2023
8eb00af
Restyled by shfmt
restyled-commits Jul 11, 2023
46f423d
Fixing
woody-apple Jul 11, 2023
f0acc63
Moving to 0.8
woody-apple Jul 11, 2023
98a867b
Updating
woody-apple Jul 11, 2023
e9b233c
Fixing wordlist
woody-apple Jul 11, 2023
8128d88
Updating to 0.8
woody-apple Jul 11, 2023
e8e8b52
Fixing Cirque
woody-apple Jul 11, 2023
d95d847
Restyled by shfmt
restyled-commits Jul 11, 2023
79fed64
Fixing cirque runner
woody-apple Jul 11, 2023
7f7db0d
Testing this
woody-apple Jul 11, 2023
7dbaffa
Moving cirque
woody-apple Jul 11, 2023
a7e7425
Restyled by shfmt
restyled-commits Jul 11, 2023
1092bd9
Fixing moved paths
woody-apple Jul 11, 2023
0160fe0
Restyled by shfmt
restyled-commits Jul 11, 2023
a7befdf
curl https://restyled.io/gh/project-chip/repos/connectedhomeip/jobs/3…
woody-apple Jul 11, 2023
b587d14
Disabling Cirque for now
woody-apple Jul 12, 2023
35b4ae6
Fixing te-link
woody-apple Jul 12, 2023
2f7efcc
Typo
woody-apple Jul 12, 2023
cc85883
Adding todo note
woody-apple Jul 13, 2023
63da788
Shrinking EFR32 image by 2.5 gb
woody-apple Jul 13, 2023
323becb
Seeing if this helps us get in under size.
woody-apple Jul 13, 2023
fc30577
Staging builds
woody-apple Jul 13, 2023
9b07a09
Fanning these out
woody-apple Jul 13, 2023
1efa8e5
Fixing filter
woody-apple Jul 13, 2023
ea046a2
Trying this
woody-apple Jul 14, 2023
2c679b6
Disable VSCode
woody-apple Jul 14, 2023
e7246b9
Restyled by shellharden
restyled-commits Jul 14, 2023
e43f70d
Restyled by shfmt
restyled-commits Jul 14, 2023
7781f3b
Starting at version 1, and adding new jobs to roll
woody-apple Jul 14, 2023
548543c
Rolling devcontainer, and fixing script
woody-apple Jul 14, 2023
c9e84c0
Fixing this typo
woody-apple Jul 14, 2023
371393a
Updating
woody-apple Jul 14, 2023
de918b2
Restyled by shellharden
restyled-commits Jul 14, 2023
42f2a3c
Restyled by shfmt
restyled-commits Jul 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
ARG BUILD_VERSION

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

# This Dockerfile contains things useful for an interactive development environment
ARG USERNAME=vscode
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"mounts": [
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
],
"initializeCommand": ".devcontainer/build.sh --tag matter-dev-environment:local --version 0.7.25",
"initializeCommand": ".devcontainer/build.sh --tag matter-dev-environment:local --version 1",
"image": "matter-dev-environment:local",
"remoteUser": "vscode",
"customizations": {
Expand Down
1 change: 1 addition & 0 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ getManualTests
getstarted
getTests
GH
ghcr
ghp
githubusercontent
gitignore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bloat_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build:0.7.25
image: ghcr.io/project-chip/chip-build:1

steps:
- name: Checkout
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

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

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

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

container:
image: connectedhomeip/chip-build:0.7.25
image: ghcr.io/project-chip/chip-build:1
volumes:
- "/tmp/log_output:/tmp/test_logs"
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/chef.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: connectedhomeip/chip-build:0.7.25
image: ghcr.io/project-chip/chip-build:1
options: --user root

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

container:
image: connectedhomeip/chip-build-esp32:0.7.25
image: ghcr.io/project-chip/chip-build-esp32:1
options: --user root

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

container:
image: connectedhomeip/chip-build-nrf-platform:0.7.25
image: ghcr.io/project-chip/chip-build-nrf-platform:1
options: --user root

steps:
Expand Down
127 changes: 0 additions & 127 deletions .github/workflows/cirque.yaml

This file was deleted.

136 changes: 122 additions & 14 deletions .github/workflows/docker_img.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,50 +15,158 @@
name: Docker CHIP images

on:
workflow_call:
inputs:
push_images:
required: false
type: boolean
default: false
push:
paths:
- "integrations/docker/images/**"
- "integrations/docker/**"
pull_request:
paths:
- "integrations/docker/images/**"
- "integrations/docker/**"
workflow_dispatch:

inputs:
push_images:
required: false
type: boolean
default: false

jobs:
build_images:
name: Build Docker CHIP Build images
build_images_base:
name: Build Docker CHIP Build images - base
runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'
strategy:
fail-fast: false
matrix:
img:
- ""
- "-ameba"
- "-android"
- "-cirque"
- "-minimal"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build images using project bash script
if: ${{ inputs.push_images == true }}
run: |
cd integrations/docker/images/base/chip-build${{ matrix.img }}
./build.sh --latest --push
- name: Build & Push images using project bash script
if: ${{ inputs.push_images == false }}
run: |
cd integrations/docker/images/base/chip-build${{ matrix.img }}
./build.sh --latest
build_images_stage_1:
needs: [build_images_base]
name: Build Docker CHIP Build images - stage 1
runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'
strategy:
fail-fast: false
matrix:
img:
- "-crosscompile"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build images using project bash script
if: ${{ inputs.push_images == true }}
run: |
cd integrations/docker/images/stage-1/chip-build${{ matrix.img }}
./build.sh --latest --push
- name: Build & Push images using project bash script
if: ${{ inputs.push_images == false }}
run: |
cd integrations/docker/images/stage-1/chip-build${{ matrix.img }}
./build.sh --latest
build_images_stage_2:
needs: [build_images_base, build_images_stage_1]
name: Build Docker CHIP Build images - stage 2
runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'
strategy:
fail-fast: false
matrix:
img:
- "-ameba"
- "-asr"
- "-bouffalolab"
- "-doxygen"
- "-efr32"
- "-esp32"
- "-esp32-qemu"
- "-infineon"
# NOTE: imx image requires too much space for GitHub-hosted runners. It fails with:
# 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
# - "-imx"
- "-java"
- "-k32w"
- "-mbed-os"
- "-nrf-platform"
- "-telink"
- "-ti"
- "-tizen"
- "-tizen-qemu"
- "-openiotsdk"
# 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)
#- "-vscode"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build All images using project bash script
- name: Build images using project bash script
if: ${{ inputs.push_images == true }}
run: |
cd integrations/docker/images/stage-2/chip-build${{ matrix.img }}
./build.sh --latest --push
- name: Build & Push images using project bash script
if: ${{ inputs.push_images == false }}
run: |
cd integrations/docker/images/stage-2/chip-build${{ matrix.img }}
./build.sh --latest

build_images_stage_3:
needs: [build_images_base, build_images_stage_1, build_images_stage_2]
name: Build Docker CHIP Build images - stage 3
runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'
strategy:
fail-fast: false
matrix:
img:
- "-android"
- "-esp32-qemu"
- "-tizen-qemu"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build images using project bash script
if: ${{ inputs.push_images == true }}
run: |
cd integrations/docker/images/stage-3/chip-build${{ matrix.img }}
./build.sh --latest --push
- name: Build & Push images using project bash script
if: ${{ inputs.push_images == false }}
run: |
cd integrations/docker/images/stage-3/chip-build${{ matrix.img }}
./build.sh --latest
build_images_vscode:
needs: [build_images_base, build_images_stage_1, build_images_stage_2, build_images_stage_3]
name: Build Docker CHIP Build images - vscode
runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]' && false
strategy:
fail-fast: false
matrix:
img:
- "-vscode"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build images using project bash script
if: ${{ inputs.push_images == true }}
run: |
cd integrations/docker/images/vscode/chip-build${{ matrix.img }}
./build.sh --latest --push
- name: Build & Push images using project bash script
if: ${{ inputs.push_images == false }}
run: |
cd integrations/docker/images/chip-build${{ matrix.img }}
cd integrations/docker/images/vscode-3/chip-build${{ matrix.img }}
./build.sh --latest
Loading