Skip to content

Commit 04b6585

Browse files
committed
doc: update workflows config.
1 parent c7fabab commit 04b6585

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,17 @@ jobs:
8686
```
8787
8888
# Create Docker Image
89-
- name: Docker login
90-
if: steps.create_tag.outputs.successful
91-
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}
89+
- name: Login to Docker Hub
90+
uses: docker/login-action@v2
91+
with:
92+
username: ${{ secrets.DOCKER_USER }}
93+
password: ${{ secrets.DOCKER_PASSWORD }}
9294

93-
- name: Build docs image:latest
94-
run: |
95-
docker buildx create --use
96-
docker buildx ls
97-
docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v7 -t ${{ secrets.DOCKER_USER }}/html-tutorial:latest .
95+
- name: Build and push image:latest
96+
uses: docker/build-push-action@v3
97+
with:
98+
push: true
99+
tags: ${{ secrets.DOCKER_USER }}/html-tutorial:latest
98100

99101
# - name: Build docs image
100102
# if: steps.create_tag.outputs.successful

0 commit comments

Comments
 (0)