Skip to content

Commit

Permalink
fix: cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dongchandev authored Oct 7, 2024
1 parent 9a51e6a commit 82f0c7f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ jobs:

- name: Build with gradle
run: ./gradlew build


- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build docker image
run: |
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }}
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/token-server:latest .
docker push ${{ secrets.DOCKERHUB_USERNAME }}/token-server:latest
docker buildx build --platform linux/amd64,linux/arm64 -t ${{ secrets.DOCKERHUB_USERNAME }}/token-server:latest --push .
deploy:
needs: build
Expand Down

0 comments on commit 82f0c7f

Please sign in to comment.