Merge pull request #1 from earthly/acb/update-readme-docker-login

include docker login in sample
This commit is contained in:
Alex Couture-Beil 2022-03-10 13:36:40 -08:00 committed by GitHub
commit c1e492b4b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
# actions
GitHub Actions for earthly
# 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:
@ -21,6 +21,8 @@ jobs:
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