mirror of
https://github.com/earthly/actions-setup.git
synced 2024-12-28 07:28:19 +08:00
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:
parent
9b4c3321af
commit
03a459ae0e
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user