Skip to content

Commit

Permalink
ci: 🎡 change ci to push image to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ricky9667 committed Dec 22, 2023
1 parent fca9373 commit 69be463
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,17 @@ jobs:
yarn install --frozen-lockfile
yarn build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
branch: gh-pages
folder: ./dist
clean: false
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: enquestor/dnd-website:latest

0 comments on commit 69be463

Please sign in to comment.