Skip to content

Commit

Permalink
Merge branch 'main' into issue-2261-earthly-ci
Browse files Browse the repository at this point in the history
* main: (30 commits)
  Support NETRC environmental var (#2426)
  Add installation name to the changelog (#2427)
  Add some basic buffering to conslogging (#2425)
  switch satellite back to core-test (#2424)
  Don't expire when JWT set externally (#2418)
  Add all the non-buildkit output to logstream too (#2423)
  More fields on satellite ls and inspect (#2412)
  Fix linebreak (#2421)
  Fix logstream closing sequence (#2422)
  fix singlequote parsing for --shell-out-anywhere (#2419)
  Update earthfile-syntax-highlighting release instructions (#2420)
  Changes in vscode-syntax-highlighting-v0.0.12 (#2407)
  fix incorrect session ID passed to llb.SessionID (#2413)
  Allow passing a JWT to Earthly for accessing cloud features (#2414)
  Fix `time.Now().UnixNano()` stripping away the nanos (#2415)
  Update CHANGELOG.md (#2393)
  docs: Satellite sleep behaviour (#2380)
  Bump nokogiri from 1.12.5 to 1.13.9 in /examples/ruby-on-rails (#2411)
  Bump nokogiri from 1.11.0 to 1.12.5 in /examples/ruby-on-rails (#2295)
  run tests on docs (#2410)
  ...
  • Loading branch information
miles170 committed Nov 19, 2022
2 parents 9b97d59 + 2b678b4 commit 0671d1d
Show file tree
Hide file tree
Showing 105 changed files with 1,764 additions and 1,527 deletions.
3 changes: 0 additions & 3 deletions .buildkite/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ do
sleep $(( att_num++ ))
done

"$earthly" config global.conversion_parallelism 5

export EARTHLY_VERSION_FLAG_OVERRIDES="referenced-save-only"
"$earthly" config global.local_registry_host 'tcp://127.0.0.1:8371'

# Yes, there is a bug in the upstream YAML parser. Sorry about the jank here.
# https://github.com/go-yaml/yaml/issues/423
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-docker-satellites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
BINARY: "docker"
SUDO: ""
USE_SATELLITE: true
SATELLITE_NAME: "core-test-2"
SATELLITE_NAME: "core-test"
EARTHLY_ORG: "earthly-technologies"
secrets: inherit

Expand Down Expand Up @@ -65,6 +65,6 @@ jobs:
BINARY_COMPOSE: "\"docker compose\""
SUDO: ""
USE_SATELLITE: true
SATELLITE_NAME: "core-test-2"
SATELLITE_NAME: "core-test"
EARTHLY_ORG: "earthly-technologies"
secrets: inherit
31 changes: 0 additions & 31 deletions .github/workflows/ci-docker-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
paths-ignore: [ docs/** ]
pull_request:
branches: [ main ]
paths-ignore: [ docs/** ]

jobs:
docker-tests:
Expand Down Expand Up @@ -145,8 +144,6 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
- name: Build latest earthly/buildkitd image using released earthly
run: earthly --use-inline-cache ./buildkitd+buildkitd --TAG=race-test
- name: Configure Earthly Conversion Parallelism
run: go run ./cmd/earthly/*.go config global.conversion_parallelism 5
- name: Execute tests (Earthly Only)
run: |-
GORACE="halt_on_error=1" go run -race ./cmd/earthly/*.go --buildkit-image earthly/buildkitd:race-test -P --no-output \
Expand Down Expand Up @@ -195,10 +192,6 @@ jobs:
set -euo pipefail
EARTHLY_VERSION_FLAG_OVERRIDES="$(tr -d '\n' < .earthly_version_flag_overrides)"
echo "EARTHLY_VERSION_FLAG_OVERRIDES=$EARTHLY_VERSION_FLAG_OVERRIDES" >> "$GITHUB_ENV"
- name: Enable local registry-based exporter
run: ./build/linux/amd64/earthly config global.local_registry_host 'tcp://127.0.0.1:8371'
- name: Configure Earthly Conversion Parallelism
run: ./build/linux/amd64/earthly config global.conversion_parallelism 5
- name: Build tutorial part 1
run: ./build/linux/amd64/earthly -P ./examples/tutorial+test-part1 --earthly=$(realpath ./build/linux/amd64/earthly)
- name: Build tutorial part 2
Expand Down Expand Up @@ -259,10 +252,6 @@ jobs:
set -euo pipefail
EARTHLY_VERSION_FLAG_OVERRIDES="$(tr -d '\n' < .earthly_version_flag_overrides)"
echo "EARTHLY_VERSION_FLAG_OVERRIDES=$EARTHLY_VERSION_FLAG_OVERRIDES" >> "$GITHUB_ENV"
- name: Enable local registry-based exporter
run: ./build/linux/amd64/earthly config global.local_registry_host 'tcp://127.0.0.1:8371'
- name: Configure Earthly Conversion Parallelism
run: ./build/linux/amd64/earthly config global.conversion_parallelism 5
- name: Build linux/amd64 +buildkitd
run: |-
./build/linux/amd64/earthly --ci --platform=linux/amd64 ./buildkitd+buildkitd --BUILDKIT_PROJECT="$BUILDKIT_PROJECT"
Expand Down Expand Up @@ -314,10 +303,6 @@ jobs:
set -euo pipefail
EARTHLY_VERSION_FLAG_OVERRIDES="$(tr -d '\n' < .earthly_version_flag_overrides)"
echo "EARTHLY_VERSION_FLAG_OVERRIDES=$EARTHLY_VERSION_FLAG_OVERRIDES" >> "$GITHUB_ENV"
- name: Enable local registry-based exporter
run: ./build/linux/amd64/earthly config global.local_registry_host 'tcp://127.0.0.1:8371'
- name: Configure Earthly Conversion Parallelism
run: ./build/linux/amd64/earthly config global.conversion_parallelism 5
- name: Build linux/arm64 +buildkitd
run: |-
./build/linux/amd64/earthly --ci --platform=linux/arm64 ./buildkitd+buildkitd --BUILDKIT_PROJECT="$BUILDKIT_PROJECT"
Expand Down Expand Up @@ -369,10 +354,6 @@ jobs:
set -euo pipefail
EARTHLY_VERSION_FLAG_OVERRIDES="$(tr -d '\n' < .earthly_version_flag_overrides)"
echo "EARTHLY_VERSION_FLAG_OVERRIDES=$EARTHLY_VERSION_FLAG_OVERRIDES" >> "$GITHUB_ENV"
- name: Enable local registry-based exporter
run: ./build/linux/amd64/earthly config global.local_registry_host 'tcp://127.0.0.1:8371'
- name: Configure Earthly Conversion Parallelism
run: ./build/linux/amd64/earthly config global.conversion_parallelism 5
- name: Build +all-dind
run: ./build/linux/amd64/earthly --ci +all-dind
- name: Buildkit logs (runs on failure)
Expand Down Expand Up @@ -423,10 +404,6 @@ jobs:
set -euo pipefail
EARTHLY_VERSION_FLAG_OVERRIDES="$(tr -d '\n' < .earthly_version_flag_overrides)"
echo "EARTHLY_VERSION_FLAG_OVERRIDES=$EARTHLY_VERSION_FLAG_OVERRIDES" >> "$GITHUB_ENV"
- name: Enable local registry-based exporter
run: ./build/linux/amd64/earthly config global.local_registry_host 'tcp://127.0.0.1:8371'
- name: Configure Earthly Conversion Parallelism
run: ./build/linux/amd64/earthly config global.conversion_parallelism 5
- name: Build +earthly-all
run: ./build/linux/amd64/earthly --ci +earthly-all
- name: Build +earthly-docker
Expand Down Expand Up @@ -479,10 +456,6 @@ jobs:
set -euo pipefail
EARTHLY_VERSION_FLAG_OVERRIDES="$(tr -d '\n' < .earthly_version_flag_overrides)"
echo "EARTHLY_VERSION_FLAG_OVERRIDES=$EARTHLY_VERSION_FLAG_OVERRIDES" >> "$GITHUB_ENV"
- name: Enable local registry-based exporter
run: ./build/linux/amd64/earthly config global.local_registry_host 'tcp://127.0.0.1:8371'
- name: Configure Earthly Conversion Parallelism
run: ./build/linux/amd64/earthly config global.conversion_parallelism 5
- name: Build +prerelease
run: ./build/linux/amd64/earthly --ci +prerelease
- name: Buildkit logs (runs on failure)
Expand Down Expand Up @@ -554,10 +527,6 @@ jobs:
set -euo pipefail
EARTHLY_VERSION_FLAG_OVERRIDES="$(tr -d '\n' < .earthly_version_flag_overrides)"
echo "EARTHLY_VERSION_FLAG_OVERRIDES=$EARTHLY_VERSION_FLAG_OVERRIDES" >> "$GITHUB_ENV"
- name: Enable local registry-based exporter
run: ./build/linux/amd64/earthly config global.local_registry_host 'tcp://127.0.0.1:8371'
- name: Configure Earthly Conversion Parallelism
run: ./build/linux/amd64/earthly config global.conversion_parallelism 5
- name: Build and push +prerelease
run: ./build/linux/amd64/earthly --ci --push +prerelease
- name: Update DockerHub description for earthly/earthly
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci-podman-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
paths-ignore: [ docs/** ]
pull_request:
branches: [ main ]
paths-ignore: [ docs/** ]

jobs:
podman-tests:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/ci-scheduled-podman-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ jobs:
set -euo pipefail
EARTHLY_VERSION_FLAG_OVERRIDES="$(tr -d '\n' < .earthly_version_flag_overrides)"
echo "EARTHLY_VERSION_FLAG_OVERRIDES=$EARTHLY_VERSION_FLAG_OVERRIDES" >> "$GITHUB_ENV"
- name: Enable local registry-based exporter
run: ${{ env.BUILT_EARTHLY_PATH }} config global.local_registry_host 'tcp://127.0.0.1:8371'
- name: Configure Earthly Conversion Parallelism
run: ${{ env.BUILT_EARTHLY_PATH }} config global.conversion_parallelism 5
# Note - we only run the non-qemu tests here because we have not figured out cross-compilation on Mac using Podman yet
- name: Execute tests-no-qemu (Earthly Only)
run: |-
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/reusable-bootstrap-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,15 @@ jobs:
run: |-
earthly config global.buildkit_additional_config "'[registry.\"docker.io\"]
mirrors = [\"registry-1.docker.io.mirror.corp.earthly.dev\"]'"
- name: Link Earthly dir to Earthly dev dir
run: mkdir -p ~/.earthly && ln -s ~/.earthly ~/.earthly-dev
- name: Build latest earthly using released earthly
run: ${{inputs.SUDO}} $(which earthly) -P --use-inline-cache ${{inputs.BUILD_EARTHLY_TARGET}}
- name: Set EARTHLY_VERSION_FLAG_OVERRIDES env
run: |-
set -euo pipefail
EARTHLY_VERSION_FLAG_OVERRIDES="$(tr -d '\n' < .earthly_version_flag_overrides)"
echo "EARTHLY_VERSION_FLAG_OVERRIDES=$EARTHLY_VERSION_FLAG_OVERRIDES" >> "$GITHUB_ENV"
- name: Enable local registry-based exporter
run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} config global.local_registry_host 'tcp://127.0.0.1:8371'
- name: Configure Earthly Conversion Parallelism
run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} config global.conversion_parallelism 5
- name: Run bootstrap-integration
run: frontend=${{inputs.BINARY}} ./tests/bootstrap/test-bootstrap.sh
- name: Buildkit logs (runs on failure)
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/reusable-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,15 @@ jobs:
- name: Docker Login (main build)
run: ${{inputs.SUDO}} ${{inputs.BINARY}} login --username "${{ secrets.DOCKERHUB_USERNAME }}" --password "${{ secrets.DOCKERHUB_TOKEN }}"
if: github.event_name == 'push'
- name: Link Earthly dir to Earthly dev dir
run: mkdir -p ~/.earthly && ln -s ~/.earthly ~/.earthly-dev
- name: Build latest earthly using released earthly
run: ${{inputs.SUDO}} $(which earthly) ${{inputs.BUILD_EARTHLY_ARGS}} ${{inputs.BUILD_EARTHLY_TARGET}}
- name: Set EARTHLY_VERSION_FLAG_OVERRIDES env
run: |-
set -euo pipefail
EARTHLY_VERSION_FLAG_OVERRIDES="$(tr -d '\n' < .earthly_version_flag_overrides)"
echo "EARTHLY_VERSION_FLAG_OVERRIDES=$EARTHLY_VERSION_FLAG_OVERRIDES" >> "$GITHUB_ENV"
- name: Enable local registry-based exporter
run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} config global.local_registry_host 'tcp://127.0.0.1:8371'
- name: Configure Earthly Conversion Parallelism
run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} config global.conversion_parallelism 5
- name: Build ${{inputs.EXAMPLE_NAME}} (PR build)
run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} --ci -P ${{inputs.EXAMPLE_NAME}}
if: github.event_name != 'push'
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/reusable-export-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,15 @@ jobs:
# qemu-user-static needed for cross-compilation (--platform) targets
run: ${{inputs.SUDO}} apt-get update && ${{inputs.SUDO}} apt-get install -y qemu-user-static
if: inputs.BINARY == 'podman'
- name: Link Earthly dir to Earthly dev dir
run: mkdir -p ~/.earthly && ln -s ~/.earthly ~/.earthly-dev
- name: Build latest earthly using released earthly
run: ${{inputs.SUDO}} $(which earthly) -P --use-inline-cache ${{inputs.BUILD_EARTHLY_TARGET}}
- name: Set EARTHLY_VERSION_FLAG_OVERRIDES env
run: |-
set -euo pipefail
EARTHLY_VERSION_FLAG_OVERRIDES="$(tr -d '\n' < .earthly_version_flag_overrides)"
echo "EARTHLY_VERSION_FLAG_OVERRIDES=$EARTHLY_VERSION_FLAG_OVERRIDES" >> "$GITHUB_ENV"
- name: Enable local registry-based exporter
run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} config global.local_registry_host 'tcp://127.0.0.1:8371'
- name: Configure Earthly Conversion Parallelism
run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} config global.conversion_parallelism 5
- name: run export tests
run: env earthly=${{inputs.BUILT_EARTHLY_PATH}} frontend=${{inputs.BINARY}} scripts/tests/export.sh
- name: Buildkit logs (runs on failure)
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/reusable-misc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ jobs:
earthly config global.buildkit_additional_config "'[registry.\"docker.io\"]
mirrors = [\"registry-1.docker.io.mirror.corp.earthly.dev\"]'"
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
- name: Link Earthly dir to Earthly dev dir
run: mkdir -p ~/.earthly && ln -s ~/.earthly ~/.earthly-dev
- name: Build latest earthly using released earthly
run: ${{inputs.SUDO}} $(which earthly) -P --use-inline-cache ${{inputs.BUILD_EARTHLY_TARGET}}
- name: rebuild earthly using latest earthly build
Expand All @@ -70,10 +72,6 @@ jobs:
set -euo pipefail
EARTHLY_VERSION_FLAG_OVERRIDES="$(tr -d '\n' < .earthly_version_flag_overrides)"
echo "EARTHLY_VERSION_FLAG_OVERRIDES=$EARTHLY_VERSION_FLAG_OVERRIDES" >> "$GITHUB_ENV"
- name: Enable local registry-based exporter
run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} config global.local_registry_host 'tcp://127.0.0.1:8371'
- name: Configure Earthly Conversion Parallelism
run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} config global.conversion_parallelism 5
- name: Run parallel buildkit start test. It ensures that earthly starting up buildkit does not race with itself.
uses: nick-fields/retry@v2
with:
Expand All @@ -93,7 +91,7 @@ jobs:
with:
timeout_minutes: 10
max_attempts: 2
command: ./scripts/tests/interactive-debugger/test-interactive.py --earthly ${{inputs.BUILT_EARTHLY_PATH}} --timeout 300
command: ./scripts/tests/interactive-debugger/test-interactive.py --earthly ${{inputs.BUILT_EARTHLY_PATH}} --timeout 180
- name: Execute version test
run: "${{inputs.BUILT_EARTHLY_PATH}} --version"
- name: Execute docker2earth test
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/reusable-push-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,15 @@ jobs:
- name: Docker mirror login via ${{inputs.BINARY}} (Earthly Only)
run: ${{inputs.SUDO}} ${{inputs.BINARY}} login registry-1.docker.io.mirror.corp.earthly.dev --username "${{ secrets.DOCKERHUB_MIRROR_USERNAME }}" --password "${{ secrets.DOCKERHUB_MIRROR_PASSWORD }}"
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
- name: Link Earthly dir to Earthly dev dir
run: mkdir -p ~/.earthly && ln -s ~/.earthly ~/.earthly-dev
- name: Build latest earthly using released earthly
run: ${{inputs.SUDO}} $(which earthly) -P --use-inline-cache ${{inputs.BUILD_EARTHLY_TARGET}}
- name: Set EARTHLY_VERSION_FLAG_OVERRIDES env
run: |-
set -euo pipefail
EARTHLY_VERSION_FLAG_OVERRIDES="$(tr -d '\n' < .earthly_version_flag_overrides)"
echo "EARTHLY_VERSION_FLAG_OVERRIDES=$EARTHLY_VERSION_FLAG_OVERRIDES" >> "$GITHUB_ENV"
- name: Enable local registry-based exporter
run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} config global.local_registry_host 'tcp://127.0.0.1:8371'
- name: Configure Earthly Conversion Parallelism
run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} config global.conversion_parallelism 5
- name: Push and Pull Cloud Images
run: |-
${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} --ci -P \
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/reusable-repo-auth-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,15 @@ jobs:
run: |-
earthly config global.buildkit_additional_config "'[registry.\"docker.io\"]
mirrors = [\"registry-1.docker.io.mirror.corp.earthly.dev\"]'"
- name: Link Earthly dir to Earthly dev dir
run: mkdir -p ~/.earthly && ln -s ~/.earthly ~/.earthly-dev
- name: Build latest earthly using released earthly
run: ${{inputs.SUDO}} $(which earthly) -P --use-inline-cache ${{inputs.BUILD_EARTHLY_TARGET}}
- name: Set EARTHLY_VERSION_FLAG_OVERRIDES env
run: |-
set -euo pipefail
EARTHLY_VERSION_FLAG_OVERRIDES="$(tr -d '\n' < .earthly_version_flag_overrides)"
echo "EARTHLY_VERSION_FLAG_OVERRIDES=$EARTHLY_VERSION_FLAG_OVERRIDES" >> "$GITHUB_ENV"
- name: Enable local registry-based exporter
run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} config global.local_registry_host 'tcp://127.0.0.1:8371'
- name: Configure Earthly Conversion Parallelism
run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} config global.conversion_parallelism 5
# to regenerate the entries below; run earthly ./scripts/tests/auth+generate-github-tasks
# auto-generated-entries start;
- name: run test-hello-world-no-ssh-agent.sh
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/reusable-secrets-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,15 @@ jobs:
run: |-
earthly config global.buildkit_additional_config "'[registry.\"docker.io\"]
mirrors = [\"registry-1.docker.io.mirror.corp.earthly.dev\"]'"
- name: Link Earthly dir to Earthly dev dir
run: mkdir -p ~/.earthly && ln -s ~/.earthly ~/.earthly-dev
- name: Build latest earthly using released earthly
run: ${{inputs.SUDO}} $(which earthly) -P --use-inline-cache ${{inputs.BUILD_EARTHLY_TARGET}}
- name: Set EARTHLY_VERSION_FLAG_OVERRIDES env
run: |-
set -euo pipefail
EARTHLY_VERSION_FLAG_OVERRIDES="$(tr -d '\n' < .earthly_version_flag_overrides)"
echo "EARTHLY_VERSION_FLAG_OVERRIDES=$EARTHLY_VERSION_FLAG_OVERRIDES" >> "$GITHUB_ENV"
- name: Enable local registry-based exporter
run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} config global.local_registry_host 'tcp://127.0.0.1:8371'
- name: Configure Earthly Conversion Parallelism
run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} config global.conversion_parallelism 5
- name: run secrets-integration
run: env earthly=${{inputs.BUILT_EARTHLY_PATH}} scripts/tests/secrets-integration.sh
- name: Buildkit logs (runs on failure)
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/reusable-test-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,15 @@ jobs:
- name: Configure Satellites (Earthly Only)
run: earthly sat ls && earthly satellite select ${{inputs.SATELLITE_NAME}}
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && inputs.USE_SATELLITE
- name: Link Earthly dir to Earthly dev dir
run: mkdir -p ~/.earthly && ln -s ~/.earthly ~/.earthly-dev
- name: Build latest earthly using released earthly
run: ${{inputs.SUDO}} $(which earthly) ${{inputs.BUILD_EARTHLY_ARGS}} ${{inputs.BUILD_EARTHLY_TARGET}}
- name: Set EARTHLY_VERSION_FLAG_OVERRIDES env
run: |-
set -euo pipefail
EARTHLY_VERSION_FLAG_OVERRIDES="$(tr -d '\n' < .earthly_version_flag_overrides)"
echo "EARTHLY_VERSION_FLAG_OVERRIDES=$EARTHLY_VERSION_FLAG_OVERRIDES" >> "$GITHUB_ENV"
- name: Enable local registry-based exporter
run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} config global.local_registry_host 'tcp://127.0.0.1:8371'
- name: Configure Earthly Conversion Parallelism
run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} config global.conversion_parallelism 5
- name: Execute test-local
uses: nick-fields/retry@v2
with:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/reusable-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ jobs:
earthly config global.buildkit_additional_config "'[registry.\"docker.io\"]
mirrors = [\"registry-1.docker.io.mirror.corp.earthly.dev\"]'"
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
- name: Link Earthly dir to Earthly dev dir
run: mkdir -p ~/.earthly && ln -s ~/.earthly ~/.earthly-dev
- name: Build latest earthly using released earthly
run: ${{inputs.SUDO}} $(which earthly) ${{inputs.BUILD_EARTHLY_ARGS}} ${{inputs.BUILD_EARTHLY_TARGET}}
- name: rebuild earthly using latest earthly build
Expand All @@ -88,10 +90,6 @@ jobs:
set -euo pipefail
EARTHLY_VERSION_FLAG_OVERRIDES="$(tr -d '\n' < .earthly_version_flag_overrides)"
echo "EARTHLY_VERSION_FLAG_OVERRIDES=$EARTHLY_VERSION_FLAG_OVERRIDES" >> "$GITHUB_ENV"
- name: Enable local registry-based exporter
run: ${{ inputs.BUILT_EARTHLY_PATH }} config global.local_registry_host 'tcp://127.0.0.1:8371'
- name: Configure Earthly Conversion Parallelism
run: ${{ inputs.BUILT_EARTHLY_PATH }} config global.conversion_parallelism 5
- name: Execute lint (Earthly Only)
run: |-
${{inputs.SUDO}} ${{ inputs.BUILT_EARTHLY_PATH }} --ci -P \
Expand Down

0 comments on commit 0671d1d

Please sign in to comment.