mirror of
https://github.com/earthly/actions-setup.git
synced 2025-01-14 11:35:05 +08:00
Alex Couture-Beil
c1e492b4b8
Merge pull request #1 from earthly/acb/update-readme-docker-login
include docker login in sample
actions-setup
GitHub Actions for setting up earthly
To use earthly with GitHub actions, create a file under .github/workflows/ci.yml
with the contents:
name: GitHub Actions CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
tests:
name: example earthly test
runs-on: ubuntu-latest
steps:
- uses: earthly/actions-setup@v1
with:
version: "latest" # or pin to an specific version, e.g. "v0.6.10"
- uses: actions/checkout@v2
- name: Docker login # to avoid dockerhub rate-limiting
run: docker login --username "${{ secrets.DOCKERHUB_USERNAME }}" --password "${{ secrets.DOCKERHUB_PASSWORD }}"
- name: what version is installed?
run: earthly --version
- name: run the earthly hello world
run: earthly github.com/earthly/hello-world:main+hello
Description
Languages
TypeScript
69.6%
Earthly
30.4%