From b24e8da60e52daa5579014b0a397486639bdb324 Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Wed, 1 May 2024 08:04:20 -0400 Subject: [PATCH 1/2] Bump all CI actions --- .github/workflows/build.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 761f6a6f..2f059ab3 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -13,7 +13,7 @@ jobs: permissions: packages: write steps: - - uses: actions/checkout@v3.3.0 + - uses: actions/checkout@v4.1.4 - name: Create container name id: create-container-name run: | @@ -25,15 +25,15 @@ jobs: echo "tag_name=$tag_name" >> $GITHUB_OUTPUT echo "container_name=$image_name:$tag_name" >> $GITHUB_OUTPUT - name: Log in to the GitHub container registry - uses: docker/login-action@v2.1.0 + uses: docker/login-action@v3.1.0 with: registry: ${{ env.REGISTRY }} username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2.2.1 + uses: docker/setup-buildx-action@v3.3.0 - name: Build and Push - uses: docker/build-push-action@v5.1.0 + uses: docker/build-push-action@v5.3.0 with: context: . file: Dockerfile @@ -51,7 +51,7 @@ jobs: outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} steps: - - uses: actions/checkout@v3.3.0 + - uses: actions/checkout@v4.1.4 - id: set-matrix run: | echo "matrix=$(find manifests -type f \( -name "*.yaml" -o -name "*.yml" \) -print | sort | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT @@ -67,7 +67,7 @@ jobs: matrix: manifest: ${{ fromJson(needs.list-manifests.outputs.matrix) }} steps: - - uses: actions/checkout@v3.3.0 + - uses: actions/checkout@v4.1.4 - name: Parse firmware manifest id: read_manifest_yaml @@ -134,7 +134,9 @@ jobs: apt-get install -y nodejs - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.3.3 with: name: ${{ steps.read_manifest_yaml.outputs['manifest_base'] }} path: outputs/* + compression-level: 9 + if-no-files-found: error From 37dd8f220cce3678febd3c33208385b7250467c5 Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Wed, 1 May 2024 08:10:59 -0400 Subject: [PATCH 2/2] Reintroduce accidentally-removed `push` filters from last PR --- .github/workflows/build.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2f059ab3..37eaa9a0 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,6 +2,14 @@ name: Build firmwares on: push: + paths: + - Dockerfile + - .github/workflows/build.yaml + - manifests/**/*.yaml + branches: + - main + tags: + - '*' env: REGISTRY: ghcr.io