Skip to content

Commit

Permalink
🚀 deploy config update
Browse files Browse the repository at this point in the history
Related:
  • Loading branch information
L-U-Ready committed Nov 6, 2024
1 parent ee63d01 commit ad736ca
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,19 @@ jobs:
with:
java-version: '21'

- name: Log in to Docker Hub
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin
- name: Build and push Docker image with JIB
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: |
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
./gradlew jib -Djib.to.auth.username=$DOCKER_USERNAME -Djib.to.auth.password=$DOCKER_PASSWORD \
-Djib.to.image=$DOCKER_USERNAME/learnmate:latest
run: ./gradlew jib -Djib.to.auth.username=$DOCKER_USERNAME -Djib.to.auth.password=$DOCKER_PASSWORD \
-Djib.to.image=$DOCKER_USERNAME/learnmate:latest

deploy:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ad736ca

Please sign in to comment.