Update build.yml

This commit is contained in:
0xJacky 2022-08-12 09:43:47 +08:00
parent 5fd3a57a69
commit 14adf28473
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0

View file

@ -220,3 +220,20 @@ jobs:
tags: | tags: |
uozi/nginx-ui:latest uozi/nginx-ui:latest
uozi/nginx-ui:${{ steps.get_version.outputs.VERSION }} 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