From 57c11328c93a960f89a23d8a37c18649c4550a20 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Wed, 26 Jul 2023 16:10:47 -0700 Subject: [PATCH 1/8] Update runner config --- .github/workflows/build_reusable.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_reusable.yml b/.github/workflows/build_reusable.yml index 9a8c2796b783a..2256664d9c2e8 100644 --- a/.github/workflows/build_reusable.yml +++ b/.github/workflows/build_reusable.yml @@ -79,7 +79,9 @@ jobs: - 'self-hosted' - 'linux' - 'x64' - - 'hosted-ci-cd:ignore' + + container: + image: public.ecr.aws/c7u5x0t0/nextjs-runner:latest steps: - run: fnm install ${{ inputs.nodeVersion || env.NODE_LTS_VERSION }} From ffca904885b258d4673b1c7815a52d9d1d4f0d64 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Wed, 26 Jul 2023 16:12:09 -0700 Subject: [PATCH 2/8] update label --- .github/workflows/build_reusable.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_reusable.yml b/.github/workflows/build_reusable.yml index 2256664d9c2e8..d6d6a67f93469 100644 --- a/.github/workflows/build_reusable.yml +++ b/.github/workflows/build_reusable.yml @@ -79,6 +79,7 @@ jobs: - 'self-hosted' - 'linux' - 'x64' + - 'hosted-ci-cd' container: image: public.ecr.aws/c7u5x0t0/nextjs-runner:latest From a23dda545a96634298523e8f70525688003b2aa6 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Wed, 26 Jul 2023 16:13:05 -0700 Subject: [PATCH 3/8] update labels more --- .github/workflows/build_reusable.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_reusable.yml b/.github/workflows/build_reusable.yml index d6d6a67f93469..3c08a70732eac 100644 --- a/.github/workflows/build_reusable.yml +++ b/.github/workflows/build_reusable.yml @@ -77,9 +77,8 @@ jobs: timeout-minutes: 25 runs-on: - 'self-hosted' - - 'linux' - - 'x64' - - 'hosted-ci-cd' + - 'size:lg' + - 'platform:linux/amd64' container: image: public.ecr.aws/c7u5x0t0/nextjs-runner:latest From 85fc405ecbab1c8ae94f2100c493bbce6e8a6bf0 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Wed, 26 Jul 2023 16:18:58 -0700 Subject: [PATCH 4/8] update shell --- .github/workflows/build_reusable.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build_reusable.yml b/.github/workflows/build_reusable.yml index 3c08a70732eac..7f2bbaf9853d1 100644 --- a/.github/workflows/build_reusable.yml +++ b/.github/workflows/build_reusable.yml @@ -80,10 +80,17 @@ jobs: - 'size:lg' - 'platform:linux/amd64' + defaults: + run: + shell: bash + container: image: public.ecr.aws/c7u5x0t0/nextjs-runner:latest steps: + - run: env + - run: pwd + - run: cat ~/.bashrc - run: fnm install ${{ inputs.nodeVersion || env.NODE_LTS_VERSION }} - run: fnm use ${{ inputs.nodeVersion || env.NODE_LTS_VERSION }} - run: node -v From d1044106b14b8ab86e3d464e69fc8f3e95f32dee Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Wed, 26 Jul 2023 16:33:24 -0700 Subject: [PATCH 5/8] update shell --- .github/workflows/build_reusable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_reusable.yml b/.github/workflows/build_reusable.yml index 7f2bbaf9853d1..bd08cfb87fdec 100644 --- a/.github/workflows/build_reusable.yml +++ b/.github/workflows/build_reusable.yml @@ -82,7 +82,7 @@ jobs: defaults: run: - shell: bash + shell: bash -leo pipefail {0} container: image: public.ecr.aws/c7u5x0t0/nextjs-runner:latest From 43f080dc7a92263b50ee1c6ca75ebfe51eab5c07 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Wed, 26 Jul 2023 16:39:30 -0700 Subject: [PATCH 6/8] update shell args --- .github/workflows/build_reusable.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_reusable.yml b/.github/workflows/build_reusable.yml index bd08cfb87fdec..0e5ded062e3c8 100644 --- a/.github/workflows/build_reusable.yml +++ b/.github/workflows/build_reusable.yml @@ -76,13 +76,17 @@ jobs: build: timeout-minutes: 25 runs-on: - - 'self-hosted' - - 'size:lg' - - 'platform:linux/amd64' + # - 'self-hosted' + # - 'size:lg' + # - 'platform:linux/amd64' + + - self-hosted + - Linux + - x64 defaults: run: - shell: bash -leo pipefail {0} + shell: bash -leo pipefail -c "source /root/.bashrc && {0}" container: image: public.ecr.aws/c7u5x0t0/nextjs-runner:latest @@ -90,7 +94,6 @@ jobs: steps: - run: env - run: pwd - - run: cat ~/.bashrc - run: fnm install ${{ inputs.nodeVersion || env.NODE_LTS_VERSION }} - run: fnm use ${{ inputs.nodeVersion || env.NODE_LTS_VERSION }} - run: node -v From 8d1939bed5d990d24ec8ab5b04d516f155587fc0 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Wed, 26 Jul 2023 16:43:14 -0700 Subject: [PATCH 7/8] add volume --- .github/workflows/build_reusable.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_reusable.yml b/.github/workflows/build_reusable.yml index 0e5ded062e3c8..6e196baa0d472 100644 --- a/.github/workflows/build_reusable.yml +++ b/.github/workflows/build_reusable.yml @@ -76,20 +76,18 @@ jobs: build: timeout-minutes: 25 runs-on: - # - 'self-hosted' - # - 'size:lg' - # - 'platform:linux/amd64' - - - self-hosted - - Linux - - x64 + - 'self-hosted' + - 'size:lg' + - 'platform:linux/amd64' defaults: run: - shell: bash -leo pipefail -c "source /root/.bashrc && {0}" + shell: bash -leo pipefail -c "source /root/.bashrc && fnm --version && bash {0}" container: image: public.ecr.aws/c7u5x0t0/nextjs-runner:latest + volumes: + - /root:/root steps: - run: env From d3454b55e7e44292c102ba45d5d806ef7d39c68d Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Fri, 28 Jul 2023 11:17:33 -0700 Subject: [PATCH 8/8] update shell --- .github/workflows/build_reusable.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_reusable.yml b/.github/workflows/build_reusable.yml index 6e196baa0d472..eb76fd9842ebd 100644 --- a/.github/workflows/build_reusable.yml +++ b/.github/workflows/build_reusable.yml @@ -82,20 +82,19 @@ jobs: defaults: run: - shell: bash -leo pipefail -c "source /root/.bashrc && fnm --version && bash {0}" + shell: bash -leo pipefail /entrypoint.sh {0} container: image: public.ecr.aws/c7u5x0t0/nextjs-runner:latest - volumes: - - /root:/root steps: - - run: env - - run: pwd - run: fnm install ${{ inputs.nodeVersion || env.NODE_LTS_VERSION }} - run: fnm use ${{ inputs.nodeVersion || env.NODE_LTS_VERSION }} - run: node -v - run: pwd + - run: ls / + - run: ls -a /__e + - run: git config --global --add safe.directory '*' - uses: actions/checkout@v3 with: