Skip to content
This repository was archived by the owner on Dec 9, 2022. It is now read-only.

Commit d2af0b2

Browse files
author
Patrick Poetz
committed
add documentation
1 parent 67a6774 commit d2af0b2

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
IMAGE_TAG: 'v0.0'
2121
DOCKERFILE_PATH: '.github/docker/Dockerfile'
2222
BUILD_CONTEXT: './'
23-
- name: Build and Publish Docker image in GPR
23+
- name: Build and Publish Docker image to Dockerhub instead of GPR
2424
uses: saubermacherag/gpr-docker-publish@master
2525
with:
2626
USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
2727
PASSWORD: ${{ secrets.DOCKERHUB_PAT }}
2828
IMAGE_TAG: 'v0.0'
2929
DOCKERFILE_PATH: '.github/docker/Dockerfile'
3030
BUILD_CONTEXT: './'
31-
DOCKERHUB_REPOSITORY: 'pinkrobin/docker-ansible-alpine'
31+
DOCKERHUB_REPOSITORY: 'pinkrobin/gpr-docker-publish-example'

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ jobs:
5959
DOCKERFILE_PATH: 'argo/gpu.Dockerfile'
6060
BUILD_CONTEXT: 'argo/'
6161

62+
#To access another docker registry like dockerhub you'll have to add `DOCKERHUB_UERNAME` and `DOCKERHUB_PAT` in github secrets.
63+
- name: Build and Publish Docker image to Dockerhub instead of GPR
64+
uses: saubermacherag/gpr-docker-publish@master
65+
with:
66+
USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
67+
PASSWORD: ${{ secrets.DOCKERHUB_PAT }}
68+
IMAGE_TAG: 'v0.0'
69+
DOCKERFILE_PATH: '.github/docker/Dockerfile'
70+
BUILD_CONTEXT: './'
71+
DOCKERHUB_REPOSITORY: 'pinkrobin/gpr-docker-publish-example'
72+
6273
# This second step is illustrative and shows how to reference the
6374
# output variables. This is completely optional.
6475
- name: Show outputs of pervious step

0 commit comments

Comments
 (0)