From 73062d4b8ab558c81c2325970e1023099391b43b Mon Sep 17 00:00:00 2001 From: Binwei Fang Date: Thu, 28 Apr 2022 02:24:29 +0800 Subject: [PATCH] ci: update ci --- .github/workflows/test.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 39c13bc..798809a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,7 @@ on: workflow_dispatch: push: branches: - - '**' + - 'master' jobs: build: @@ -61,3 +61,29 @@ jobs: demo2/*.md demo2/*/*.md + + docker: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - + name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: fangbinwei/aliyun-oss-website-action:latest \ No newline at end of file