This repository was archived by the owner on Dec 9, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff 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 '
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments