Skip to content

Commit

Permalink
enable dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
dsame committed Nov 11, 2023
1 parent 44cea1b commit 09e889c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
choose-registry:
runs-on: ubuntu-latest
env:
dockerhub: false
dockerhub: true
azureregistry: true
outputs:
dockerhub: ${{ steps.choose.outputs.dockerhub }}
Expand Down Expand Up @@ -88,7 +88,7 @@
docker images
- name: Publish to Docker Hub
if: ${{ needs.choose-registry.outputs.dockerhub == 'true' }}
if: ${{ needs.choose-registry.outputs.dockerhub }}
run: |
docker tag az-appservice-go ${{ secrets.DOCKER_USERNAME }}/az-appservice-go
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -109,7 +109,7 @@
docker push akvtraining.azurecr.io/az-appservice-go
deplpoy-to-azure-from-dockerhub:
if: ${{ needs.choose-registry.outputs.dockerhub == 'true' }}
if: ${{ needs.choose-registry.outputs.dockerhub }}
needs: [publish-to-registry, choose-registry]
runs-on: ubuntu-latest

Expand Down

0 comments on commit 09e889c

Please sign in to comment.