Skip to content

Commit 5fedbd2

Browse files
committed
github actions updated
1 parent 5955db1 commit 5fedbd2

1 file changed

Lines changed: 21 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,27 @@ jobs:
3434
- name: Build
3535
run: pnpm vite build
3636

37+
- name: Build Docker image
38+
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/stoneinscription:frontend-latest .
39+
3740
- name: Log in to Docker Hub
3841
uses: docker/login-action@v3
3942
with:
40-
username: ${{ secrets.DOCKERHUB_USERNAME }}
41-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
42-
43-
- name: Build and push Docker image
44-
uses: docker/build-push-action@v6
45-
with:
46-
context: .
47-
push: true
48-
tags: ${{ secrets.DOCKERHUB_USERNAME }}/stoneinscription:frontend-latest
43+
username: ${{ secrets.DOCKER_USERNAME }}
44+
password: ${{ secrets.DOCKER_PASSWORD }}
45+
46+
- name: Push Docker image
47+
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/stoneinscription:frontend-latest
48+
49+
# - name: Log in to Docker Hub
50+
# uses: docker/login-action@v3
51+
# with:
52+
# username: ${{ secrets.DOCKERHUB_USERNAME }}
53+
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
54+
55+
# - name: Build and push Docker image
56+
# uses: docker/build-push-action@v6
57+
# with:
58+
# context: .
59+
# push: true
60+
# tags: ${{ secrets.DOCKERHUB_USERNAME }}/stoneinscription:frontend-latest

0 commit comments

Comments
 (0)