Skip to content

Commit d789ad0

Browse files
committed
Merge branch 'release-v5.8.10'
2 parents ec229f5 + dd9d40b commit d789ad0

File tree

4 files changed

+55
-48
lines changed

4 files changed

+55
-48
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff 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

docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3.9-slim-buster
2-
COPY ./dist/netfoundry-*.tar.gz /tmp/
2+
COPY ./dist/netfoundry-*.whl /tmp/
33
RUN 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
66
CMD ["nfctl --version"]

docker/Dockerfile.demo

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
FROM netfoundry/python
2-
ARG network_name=BibbidiBobbidiBoo
3-
ENV NETWORK_NAME=${network_name}
4-
CMD nfdemo --network ${NETWORK_NAME}
2+
CMD nfctl --yes demo

0 commit comments

Comments
 (0)