Skip to content

Commit 2883af8

Browse files
author
Miguel Savignano
committed
update README, add docker auth help
1 parent 2f23654 commit 2883af8

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,37 @@ Execute docker build and push using docker caches.
1212
build_params: --build-arg=NPM_TOKEN=${{secrets.NPM_TOKEN}}
1313
```
1414
15+
Use your own docker authentication for private repositories
16+
Examples:
17+
18+
Azure
19+
20+
```yml
21+
- run: az acr login --name myregistry
22+
- uses: devmasx/cached-docker-build-push@v0.1.0
23+
with:
24+
image_name: devmasx/project-name
25+
```
26+
27+
Google cloud
28+
29+
```yml
30+
- run: gcloud auth configure-docker
31+
- uses: devmasx/cached-docker-build-push@v0.1.0
32+
with:
33+
image_name: devmasx/project-name
34+
```
35+
36+
Docker Hub
37+
38+
```yml
39+
- run: |
40+
docker login -u ${{secrets.DOCKER_USERNAME}} -p ${{secrets.DOCKER_PASSWORD}}
41+
- uses: devmasx/cached-docker-build-push@v0.1.0
42+
with:
43+
image_name: devmasx/project-name
44+
```
45+
1546
## Docker build
1647
1748
Use the latest docker image for use as cache

0 commit comments

Comments
 (0)