File tree Expand file tree Collapse file tree 4 files changed +55
-48
lines changed
Expand file tree Collapse file tree 4 files changed +55
-48
lines changed Original file line number Diff line number Diff line change @@ -144,19 +144,8 @@ jobs:
144144 - name : Build & Push Multi-Platform Container
145145 uses : docker/build-push-action@v2
146146 with :
147- context : . # build context is workspace so we can copy artifacts from ./dist/
147+ context : ./docker # build context is workspace so we can copy artifacts from ./dist/
148148 builder : ${{ steps.buildx.outputs.name }}
149149 platforms : linux/amd64,linux/arm64
150150 push : true
151151 tags : ${{ steps.compose_tags.outputs.container_tags }}
152-
153- - name : Demo Container
154- if : github.event.action == 'published'
155- uses : docker/build-push-action@v2
156- with :
157- context : . # build context is workspace so we can copy artifacts from ./dist/
158- file : Dockerfile.demo
159- builder : ${{ steps.buildx.outputs.name }}
160- platforms : linux/amd64,linux/arm64
161- push : true
162- tags : netfoundry/python:demo
Original file line number Diff line number Diff line change 11FROM python:3.9-slim-buster
2- COPY ./dist/netfoundry-*.tar.gz /tmp/
2+ COPY ./dist/netfoundry-*.whl /tmp/
33RUN pip install --upgrade pip
4- RUN pip install /tmp/netfoundry-*.tar.gz
5- RUN rm -f /tmp/netfoundry-*.tar.gz
4+ RUN pip install /tmp/netfoundry-*.whl
5+ RUN rm -f /tmp/netfoundry-*.whl
66CMD ["nfctl --version" ]
Original file line number Diff line number Diff line change 11FROM netfoundry/python
2- ARG network_name=BibbidiBobbidiBoo
3- ENV NETWORK_NAME=${network_name}
4- CMD nfdemo --network ${NETWORK_NAME}
2+ CMD nfctl --yes demo
You can’t perform that action at this time.
0 commit comments