-
Notifications
You must be signed in to change notification settings - Fork 2
add renovate and fix ci #3
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
base: main
Are you sure you want to change the base?
Changes from all commits
8bb1ee8
ce3be21
7fc3534
9522ff6
6ebe553
b6642f6
6b7291c
75eb7fe
bcce1db
c90e611
529af1d
adba4b8
9aad9b6
e2d355d
d5c08d3
133d43e
1c5ddcb
4e81e36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| # PRs require approval from the earthly core team | ||
| * @earthly/core | ||
| # PRs require approval from the EarthBuild core team | ||
| * @EarthBuild/fork-admins |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { | ||
| $schema: 'https://docs.renovatebot.com/renovate-schema.json', | ||
| extends: [ | ||
| 'config:best-practices', | ||
| 'security:openssf-scorecard', | ||
| ':semanticCommits', | ||
| ':pinVersions', | ||
| ], | ||
| configMigration: true, | ||
| dockerfile: { | ||
| managerFilePatterns: ['/Earthfile/'], | ||
gilescope marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }, | ||
| customManagers: [ | ||
| { | ||
| customType: 'regex', | ||
| description: 'Update _version ARGs and ENVs in Earthfile', | ||
| managerFilePatterns: ['/^Earthfile$/'], | ||
gilescope marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| matchStrings: [ | ||
| '#\\s*renovate:\\s*datasource=(?<datasource>[a-z-]+?)(?:\\s+depName=(?<depName>.+?))?\\s+packageName=(?<packageName>.+?)(?:\\s+versioning=(?<versioning>[a-z-]+?))?\\s+(?:ENV|ARG)\\s+.+?(_VERSION|_VER|_version)=(?<currentValue>.+?)\\s', | ||
gilescope marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ], | ||
| }, | ||
| ], | ||
| labels: ['renovate'], | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,54 +9,67 @@ on: | |
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| test: | ||
| name: +test | ||
| runs-on: [earthly-satellite#gha-lib] # https://docs.earthly.dev/earthly-cloud/satellites/gha-runners | ||
| runs-on: ubuntu-24.04 | ||
| env: | ||
| FORCE_COLOR: 1 | ||
| EARTHLY_CONVERSION_PARALLELISM: "5" | ||
| EARTHLY_TOKEN: "${{ secrets.EARTHLY_TOKEN }}" | ||
| EARTHLY_INSTALL_ID: "earthly-lib-githubactions" | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Docker mirror login (non fork only) | ||
| run: docker 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: Configure Earthly to use mirror (non fork only) | ||
| run: |- | ||
| earthly config global.buildkit_additional_config "'[registry.\"docker.io\"] | ||
| mirrors = [\"registry-1.docker.io.mirror.corp.earthly.dev\"]'" | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0 | ||
| - uses: docker/login-action@v3 | ||
| # if fork no secret access, so skip and take chances on rate limiting. | ||
| if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository | ||
| with: | ||
| username: ${{ vars.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
| - uses: earthly/actions-setup@bda7cee4972033c6d6b77d77165e787f389f8752 | ||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Run tests | ||
| run: |- | ||
| earthly config git "{github.com: {auth: ssh, user: git}}" && \ | ||
| eval $(ssh-agent) && \ | ||
| earthly secrets --org earthly-technologies --project core get littleredcorvette-id_rsa | ssh-add - && \ | ||
| earthly --ci -P +test | ||
| run: | | ||
| earthly config git "{github.com: {auth: ssh, user: git}}" | ||
| eval $(ssh-agent) | ||
| mkdir -p ~/.ssh | ||
| chmod 700 ~/.ssh | ||
| printf '%s\n' "${{ secrets.EARTHBUILDCI_GITHUB_USER_SSH_PRIVATE_KEY }}" | tr -d '\r' > ~/.ssh/id_ed25519 | ||
| chmod 600 ~/.ssh/id_ed25519 | ||
| ssh-add ~/.ssh/id_ed25519 | ||
| earthly --ci -P --secret-file earthbuildci_id_ed25519=~/.ssh/id_ed25519 +test | ||
|
|
||
| test-native-arm: | ||
| name: +test-native-arm | ||
| runs-on: [earthly-satellite#gha-arm-lib] # https://docs.earthly.dev/earthly-cloud/satellites/gha-runners | ||
| runs-on: ubuntu-24.04-arm | ||
| env: | ||
| FORCE_COLOR: 1 | ||
| EARTHLY_CONVERSION_PARALLELISM: "5" | ||
| EARTHLY_TOKEN: "${{ secrets.EARTHLY_TOKEN }}" | ||
| EARTHLY_INSTALL_ID: "earthly-lib-githubactions" | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Docker mirror login (non fork only) | ||
| run: docker 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: Configure Earthly to use mirror (non fork only) | ||
| run: |- | ||
| earthly config global.buildkit_additional_config "'[registry.\"docker.io\"] | ||
| mirrors = [\"registry-1.docker.io.mirror.corp.earthly.dev\"]'" | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0 | ||
| - uses: docker/login-action@v3 | ||
| # if fork no secret access, so skip and take chances on rate limiting. | ||
| if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository | ||
| with: | ||
| username: ${{ vars.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
| - uses: earthly/actions-setup@bda7cee4972033c6d6b77d77165e787f389f8752 | ||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Run tests | ||
| run: |- | ||
| earthly config git "{github.com: {auth: ssh, user: git}}" && \ | ||
| eval $(ssh-agent) && \ | ||
| earthly secrets --org earthly-technologies --project core get littleredcorvette-id_rsa | ssh-add - && \ | ||
| earthly --ci -P ./utils/dind+test | ||
| run: | | ||
| earthly config git "{github.com: {auth: ssh, user: git}}" | ||
| eval $(ssh-agent) | ||
| mkdir -p ~/.ssh | ||
| chmod 700 ~/.ssh | ||
| printf '%s\n' "${{ secrets.EARTHBUILDCI_GITHUB_USER_SSH_PRIVATE_KEY }}" | tr -d '\r' > ~/.ssh/id_ed25519 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let's discuss tomorrow and see if we can move this to the app installation and do away with the service account There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| chmod 600 ~/.ssh/id_ed25519 | ||
| ssh-add ~/.ssh/id_ed25519 | ||
| ssh-keyscan -t rsa,ecdsa,ed25519 -H github.com >> ~/.ssh/known_hosts | ||
| ssh-keyscan -p 443 -t rsa,ecdsa,ed25519 -H ssh.github.com >> ~/.ssh/known_hosts | ||
| chmod 644 ~/.ssh/known_hosts | ||
| earthly --ci -P --secret-file earthbuildci_id_ed25519=~/.ssh/id_ed25519 +test | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,19 @@ | ||
| VERSION --arg-scope-and-set --pass-args 0.7 | ||
|
|
||
| PROJECT earthly-technologies/core | ||
|
|
||
| all: | ||
| BUILD --platform=linux/amd64 --platform=linux/arm64 +test-deep-clone-image \ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it is a bit different to not test multi-platform clone. Did that qemu setup action we use widely in the main repo not do the trick? |
||
| BUILD +test-deep-clone-image \ | ||
| --base_image=alpine/git:latest \ | ||
| --base_image=alpine:latest \ | ||
| --base_image=debian:stable \ | ||
| --base_image=debian:stable-slim \ | ||
| --base_image=ubuntu:latest \ | ||
| --base_image=amazonlinux:1 \ | ||
| --base_image=amazonlinux:2 \ | ||
| --GIT_URL=https://github.com/earthly/hello-world.git \ | ||
| --GIT_URL=git@github.com:earthly/hello-world.git \ | ||
| --GIT_URL=git@github.com:earthly/hello-world \ | ||
| --GIT_URL=https://github.com/EarthBuild/hello-world.git \ | ||
| --GIT_URL=git@github.com:EarthBuild/hello-world.git \ | ||
| --GIT_URL=git@github.com:EarthBuild/hello-world \ | ||
| --SECRET_PATH="" \ | ||
| --SECRET_PATH="littleredcorvette-id_rsa" \ | ||
| --SECRET_PATH="earthbuildci_id_ed25519" \ | ||
| --DEST_DIR="" \ | ||
| --DEST_DIR="some-other-dir" | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.