Skip to content

Commit

Permalink
testing pushing to dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
salonishah11 committed Sep 23, 2024
1 parent 3b6ccdf commit f323dff
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,25 @@ jobs:
id: tag
env:
DEFAULT_BUMP: patch
GITHUB_TOKEN: ${{ secrets.BROADBOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.BROADBOT_TOKEN }} # this allows the push to succeed later
RELEASE_BRANCHES: develop
WITH_V: true

- name: Construct dockerhub and GCR image names
id: image-name
run: |
echo ::set-output name=DOCKERHUB_NAME::broadinstitute/agora:${{ steps.tag.outputs.new_tag }}
echo ::set-output name=GCR_NAME::gcr.io/broad-dsp-gcr-public/agora:${{ steps.tag.outputs.new_tag }}
- name: Build image
run: |
docker build -t agora:${{ steps.tag.outputs.new_tag }} .
docker build -t ${{ steps.image-name.outputs.DOCKERHUB_NAME }} .
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: dsdejenkins
password: ${{ secrets.DSDEJENKINS_DOCKERHUB_PASSWORD }}

- name: Push dockerhub image
run: docker push ${{ steps.image-name.outputs.DOCKERHUB_NAME }}

0 comments on commit f323dff

Please sign in to comment.