Skip to content

Commit

Permalink
Log in to Docker Hub in github workflow (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaldengeki authored Jun 13, 2024
1 parent 326f004 commit 9cd9cf3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,15 @@ jobs:
uses: actions/checkout@v4
- name: bazel test //...
run: bazel --bazelrc=.github/workflows/ci.bazelrc --bazelrc=.bazelrc test //...
- name: Login to Docker Hub
if: ${{ github.ref == 'refs/heads/main' }}
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push to Docker Hub
if: ${{ github.ref == 'refs/heads/main' }}
run: |
bazel --bazelrc=.github/workflows/ci.bazelrc --bazelrc=.bazelrc run //src/python/fitbit_challenges/api:dockerhub
bazel --bazelrc=.github/workflows/ci.bazelrc --bazelrc=.bazelrc run //src/python/fitbit_challenges/api/migrations:dockerhub
bazel --bazelrc=.github/workflows/ci.bazelrc --bazelrc=.bazelrc run //src/python/fitbit_challenges/worker:dockerhub

0 comments on commit 9cd9cf3

Please sign in to comment.