Skip to content

Commit

Permalink
I added docker login since I'm using docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
kenlight-bu committed Sep 27, 2024
1 parent 720c9c8 commit b196393
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
deploy:
runs-on: ubuntu-latest
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
HEROKU_EMAIL: ${{ secrets.HEROKU_EMAIL }}
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_APP_NAME: ${{ secrets.HEROKU_APP_NAME }} # Your Heroku app name
Expand All @@ -20,6 +22,10 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to Docker Hub
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login --username "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Log in to Heroku Container Registry
run: |
echo "$HEROKU_API_KEY" | docker login --username="$HEROKU_EMAIL" --password-stdin registry.heroku.com
Expand Down
4 changes: 3 additions & 1 deletion code/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ HEROKU_APP_NAME=peak-performance
HEROKU_EMAIL=[email protected]
HEROKU_API_KEY=HRKU-bad50687-f1b5-4957-9a26-8836b73eb793
HEROKU_APP_NAME_CLIENT=peak-performance-client
HEROKU_APP_NAME_SERVER=peak-performance-server
HEROKU_APP_NAME_SERVER=peak-performance-server
DOCKER_USERNAME: cs673olf24team3
DOCKER_PASSWORD: @@cs673olf24team3!+
2 changes: 2 additions & 0 deletions code/.env.production
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ [email protected]
HEROKU_API_KEY=HRKU-bad50687-f1b5-4957-9a26-8836b73eb793
HEROKU_APP_NAME_CLIENT=peak-performance-client
HEROKU_APP_NAME_SERVER=peak-performance-server
DOCKER_USERNAME: cs673olf24team3
DOCKER_PASSWORD: @@cs673olf24team3!+

0 comments on commit b196393

Please sign in to comment.