From 69be463424a5d795c46cd45e6df8741e37d0f093 Mon Sep 17 00:00:00 2001 From: Ricky Hu Date: Fri, 22 Dec 2023 14:04:56 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=8E=A1=20change=20ci=20to=20push=20?= =?UTF-8?q?image=20to=20docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9751b2c..f8d8172 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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