mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
Update build.yml
This commit is contained in:
parent
5fd3a57a69
commit
14adf28473
1 changed files with 17 additions and 0 deletions
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue