From 2d18278749a398a87ba2dbfe07f973a8c19f4d38 Mon Sep 17 00:00:00 2001 From: sdawley Date: Fri, 9 Dec 2022 13:37:35 -0800 Subject: [PATCH 1/2] Chore: Update GitHub actions to use node 16 and Ubuntu to latest Signed-off-by: sdawley --- .github/workflows/codecov.yml | 10 ++++---- .github/workflows/next-build-multiarch.yml | 18 +++++++------- .github/workflows/pr.yml | 28 +++++++++++----------- .github/workflows/release.yml | 22 ++++++++--------- .github/workflows/try-in-web-ide.yaml | 2 +- 5 files changed, 40 insertions(+), 40 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 0c75e7b50..0c09c96b9 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -20,18 +20,18 @@ on: jobs: coverage-report: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: "Checkout Che Dashboard source code" - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: "Use Node.js" - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.x - name: "Install dependencies" run: yarn @@ -40,7 +40,7 @@ jobs: run: yarn test:coverage - name: "Build Codecov report" - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3.1.1 with: files: ./packages/dashboard-frontend/coverage/lcov.info,./packages/dashboard-backend/coverage/lcov.info,./packages/common/coverage/lcov.info flags: unittests diff --git a/.github/workflows/next-build-multiarch.yml b/.github/workflows/next-build-multiarch.yml index f621bf201..feba062f9 100644 --- a/.github/workflows/next-build-multiarch.yml +++ b/.github/workflows/next-build-multiarch.yml @@ -22,7 +22,7 @@ env: jobs: build-images: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: fail-fast: false matrix: @@ -34,30 +34,30 @@ jobs: steps: - name: "Checkout Che Dashboard source code" - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: "Set up QEMU" - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 - name: "Set up Docker Buildx ${{ matrix.arch }}" - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: "Docker quay.io Login" - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: quay.io username: ${{ secrets.QUAY_USERNAME }} password: ${{ secrets.QUAY_PASSWORD }} - name: "Docker docker.io Login" - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: docker.io username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - name: "Build and push ${{ matrix.arch }}" - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: cache-from: type=registry,ref=${{ env.CACHE_IMAGE_FULL }} cache-to: type=registry,ref=${{ env.CACHE_IMAGE_FULL }},mode=max @@ -75,11 +75,11 @@ jobs: create-manifest: if: always() needs: build-images - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: "Docker quay.io Login" - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: quay.io username: ${{ secrets.QUAY_USERNAME }} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index b4b4401c8..9faa11a0e 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -22,15 +22,15 @@ env: jobs: dash-licenses: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest if: ${{ github.base_ref == 'main' }} steps: - name: "Checkout Che Dashboard source code" - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: "Use Node 16" - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: 16 - @@ -41,17 +41,17 @@ jobs: run: yarn license:check build-and-test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: matrix: node-version: [14.x, 16.x] steps: - name: "Checkout Che Dashboard source code" - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: "Use Node.js ${{ matrix.node-version }}" - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - @@ -69,7 +69,7 @@ jobs: docker-build: needs: build-and-test - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest continue-on-error: ${{ matrix.default == false }} strategy: fail-fast: false @@ -84,19 +84,19 @@ jobs: steps: - name: "Checkout Che Dashboard source code" - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: ${{ env.DIR_DASHBOARD }} ref: ${{ github.event.pull_request.head.sha }} - name: "Set up QEMU" - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 - name: "Set up Docker Buildx ${{ matrix.platform }}" - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: "Cache Docker layers" - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} @@ -104,14 +104,14 @@ jobs: ${{ runner.os }}-buildx- - name: "Docker quay.io Login" - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: quay.io username: ${{ secrets.QUAY_USERNAME }} password: ${{ secrets.QUAY_PASSWORD }} - name: "Build and push ${{ matrix.platform }}" - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache @@ -122,7 +122,7 @@ jobs: tags: ${{ env.ORGANIZATION }}/che-dashboard:${{ env.IMAGE_VERSION }} - name: "Comment with image name" - uses: actions/github-script@v3 + uses: actions/github-script@v6 if: ${{ matrix.default == true }} with: script: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6c5cde59b..a4aea9524 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ env: jobs: build-images: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: fail-fast: false matrix: @@ -30,23 +30,23 @@ jobs: steps: - name: "Checkout Che Dashboard source code" - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: "Set up QEMU" - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 - name: "Set up Docker Buildx ${{ matrix.arch }}" - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: "Docker quay.io Login" - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: quay.io username: ${{ secrets.QUAY_USERNAME }} password: ${{ secrets.QUAY_PASSWORD }} - name: "Build and push ${{ matrix.arch }}" - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: . file: ./build/dockerfiles/Dockerfile @@ -61,11 +61,11 @@ jobs: create-manifest: needs: build-images - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: "Docker quay.io Login" - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: quay.io username: ${{ secrets.QUAY_USERNAME }} @@ -99,14 +99,14 @@ jobs: tag-release: needs: create-manifest - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: "Checkout Che Dashboard source code" - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: "Setup Node" - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: "14" - diff --git a/.github/workflows/try-in-web-ide.yaml b/.github/workflows/try-in-web-ide.yaml index 20afe3c04..bb051831e 100644 --- a/.github/workflows/try-in-web-ide.yaml +++ b/.github/workflows/try-in-web-ide.yaml @@ -7,7 +7,7 @@ on: jobs: add-link: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Web IDE Pull Request Check id: try-in-web-ide From 97f425a3268bcb8de2daef54daa2445f2470917a Mon Sep 17 00:00:00 2001 From: sdawley Date: Tue, 20 Dec 2022 16:26:11 -0800 Subject: [PATCH 2/2] fix: set Ubuntu to 22.04 specifically Signed-off-by: sdawley --- .github/workflows/codecov.yml | 4 ++-- .github/workflows/next-build-multiarch.yml | 4 ++-- .github/workflows/pr.yml | 6 +++--- .github/workflows/release.yml | 6 +++--- .github/workflows/try-in-web-ide.yaml | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 0c09c96b9..ae8153338 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -20,7 +20,7 @@ on: jobs: coverage-report: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: "Checkout Che Dashboard source code" @@ -40,7 +40,7 @@ jobs: run: yarn test:coverage - name: "Build Codecov report" - uses: codecov/codecov-action@v3.1.1 + uses: codecov/codecov-action@v3 with: files: ./packages/dashboard-frontend/coverage/lcov.info,./packages/dashboard-backend/coverage/lcov.info,./packages/common/coverage/lcov.info flags: unittests diff --git a/.github/workflows/next-build-multiarch.yml b/.github/workflows/next-build-multiarch.yml index feba062f9..e09912e40 100644 --- a/.github/workflows/next-build-multiarch.yml +++ b/.github/workflows/next-build-multiarch.yml @@ -22,7 +22,7 @@ env: jobs: build-images: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -75,7 +75,7 @@ jobs: create-manifest: if: always() needs: build-images - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: "Docker quay.io Login" diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 9faa11a0e..91159e646 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -22,7 +22,7 @@ env: jobs: dash-licenses: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: ${{ github.base_ref == 'main' }} steps: - @@ -41,7 +41,7 @@ jobs: run: yarn license:check build-and-test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: node-version: [14.x, 16.x] @@ -69,7 +69,7 @@ jobs: docker-build: needs: build-and-test - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 continue-on-error: ${{ matrix.default == false }} strategy: fail-fast: false diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a4aea9524..e4874a46c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ env: jobs: build-images: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -61,7 +61,7 @@ jobs: create-manifest: needs: build-images - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: "Docker quay.io Login" @@ -99,7 +99,7 @@ jobs: tag-release: needs: create-manifest - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: "Checkout Che Dashboard source code" diff --git a/.github/workflows/try-in-web-ide.yaml b/.github/workflows/try-in-web-ide.yaml index bb051831e..f88a44d21 100644 --- a/.github/workflows/try-in-web-ide.yaml +++ b/.github/workflows/try-in-web-ide.yaml @@ -7,7 +7,7 @@ on: jobs: add-link: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Web IDE Pull Request Check id: try-in-web-ide