Skip to content

Commit

Permalink
use dockerhub instead of nexus
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedwaleedmalik committed Aug 26, 2020
1 parent 484e435 commit 57c87ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ jobs:
- name: Build and push Docker images
uses: docker/build-push-action@v1
with:
username: ${{ secrets.STAKATER_NEXUS_USERNAME }}
password: ${{ secrets.STAKATER_NEXUS_PASSWORD }}
registry: ${{ secrets.STAKATER_NEXUS_REGISTRY }}
username: ${{ secrets.STAKATER_DOCKERHUB_USERNAME }}
password: ${{ secrets.STAKATER_DOCKERHUB_PASSWORD }}
repository: ${{ env.GITHUB_REPOSITORY }}
add_git_labels: true
dockerfile: ${{ env.DOCKER_FILE_PATH }}
Expand All @@ -54,7 +53,7 @@ jobs:
- name: Comment on PR
uses: thollander/actions-comment-pull-request@master
with:
message: '@${{ github.actor }} Image is available for testing. `docker pull ${{ secrets.STAKATER_NEXUS_REGISTRY }}/${{ github.repository }}:${{ steps.generate_tag.outputs.GIT_TAG }}`'
message: '@${{ github.actor }} Image is available for testing. `docker pull ${{ github.repository }}:${{ steps.generate_tag.outputs.GIT_TAG }}`'
GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }}

- name: Notify Failure
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ jobs:
- name: Build and push Docker images
uses: docker/build-push-action@v1
with:
username: ${{ secrets.STAKATER_NEXUS_USERNAME }}
password: ${{ secrets.STAKATER_NEXUS_PASSWORD }}
registry: ${{ secrets.STAKATER_NEXUS_REGISTRY }}
username: ${{ secrets.STAKATER_DOCKERHUB_USERNAME }}
password: ${{ secrets.STAKATER_DOCKERHUB_PASSWORD }}
repository: ${{ env.GITHUB_REPOSITORY }}
add_git_labels: true
dockerfile: ${{ env.DOCKER_FILE_PATH }}
Expand Down

0 comments on commit 57c87ff

Please sign in to comment.