Skip to content

Commit c787f83

Browse files
committed
also build demo container
1 parent ceeda52 commit c787f83

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,14 @@ jobs:
105105
platforms: linux/amd64,linux/arm64
106106
push: true
107107
tags: ${{ steps.compose_tags.outputs.container_tags }}
108+
109+
- name: Build & Push Multi-Platform Container Image to Hub
110+
if: github.event.action == 'published'
111+
uses: docker/build-push-action@v2
112+
with:
113+
context: . # build context is workspace so we can copy artifacts from ./dist/
114+
file: Dockerfile.demo
115+
builder: ${{ steps.buildx.outputs.name }}
116+
platforms: linux/amd64,linux/arm64
117+
push: true
118+
tags: netfoundry/python:demo

Dockerfile.demo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM netfoundry/python
2+
ARG network_name=BibbidiBobbidiBoo
3+
ENV NETWORK_NAME=${network_name}
4+
CMD python3 -m netfoundry.demo --network ${NETWORK_NAME}

0 commit comments

Comments
 (0)