Skip to content

Commit 14adf28

Browse files
committed
Update build.yml
1 parent 5fd3a57 commit 14adf28

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,20 @@ jobs:
220220
tags: |
221221
uozi/nginx-ui:latest
222222
uozi/nginx-ui:${{ steps.get_version.outputs.VERSION }}
223+
224+
- name: Prepare Demo Dockerfile
225+
if: env.GOOS == 'linux' && env.GOARCH == 'amd64'
226+
run: |
227+
cp ./demo.Dockerfile ./dist
228+
cp -rp ./resources ./dist
229+
230+
- name: Build and push demo
231+
if: env.GOOS == 'linux' && env.GOARCH == 'amd64'
232+
uses: docker/build-push-action@v2
233+
with:
234+
context: ./dist
235+
file: ./dist/Dockerfile
236+
platforms: linux/amd64
237+
push: ${{ github.event_name != 'pull_request' }}
238+
tags: |
239+
uozi/nginx-ui-demo:latest

0 commit comments

Comments
 (0)