Skip to content

Commit

Permalink
doc: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 22, 2022
1 parent c7fabab commit 04b6585
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,17 @@ jobs:
```
# Create Docker Image
- name: Docker login
if: steps.create_tag.outputs.successful
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}

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

# - name: Build docs image
# if: steps.create_tag.outputs.successful
Expand Down

0 comments on commit 04b6585

Please sign in to comment.