From 14adf28473efd8973fd1597c94be18b374d7ac04 Mon Sep 17 00:00:00 2001 From: 0xJacky Date: Fri, 12 Aug 2022 09:43:47 +0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d1208cdd..84b602b6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -220,3 +220,20 @@ jobs: tags: | uozi/nginx-ui:latest uozi/nginx-ui:${{ steps.get_version.outputs.VERSION }} + + - name: Prepare Demo Dockerfile + if: env.GOOS == 'linux' && env.GOARCH == 'amd64' + run: | + cp ./demo.Dockerfile ./dist + cp -rp ./resources ./dist + + - name: Build and push demo + if: env.GOOS == 'linux' && env.GOARCH == 'amd64' + uses: docker/build-push-action@v2 + with: + context: ./dist + file: ./dist/Dockerfile + platforms: linux/amd64 + push: ${{ github.event_name != 'pull_request' }} + tags: | + uozi/nginx-ui-demo:latest