include docker login in sample

This is to remind users to perform a docker login to avoid rate
limiting.

Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
This commit is contained in:
Alex Couture-Beil 2022-03-10 13:34:07 -08:00
parent 9b4c3321af
commit 03a459ae0e
No known key found for this signature in database
GPG Key ID: 097FC39A210CE7F7

View File

@ -1,5 +1,5 @@
# actions # actions-setup
GitHub Actions for earthly GitHub Actions for setting up earthly
To use earthly with hithub actions, create a file under `.github/workflows/ci.yml` with the contents: To use earthly with hithub actions, create a file under `.github/workflows/ci.yml` with the contents:
@ -21,6 +21,8 @@ jobs:
with: with:
version: "latest" # or pin to an specific version, e.g. "v0.6.10" version: "latest" # or pin to an specific version, e.g. "v0.6.10"
- uses: actions/checkout@v2 - 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? - name: what version is installed?
run: earthly --version run: earthly --version
- name: run the earthly hello world - name: run the earthly hello world