aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2020-11-16 22:21:50 +0100
committerGravatar Sebastiaan Zeeff <[email protected]>2020-11-16 22:21:50 +0100
commita7cbf3dd61cff4b6e91ea60a5e30e0211934a5bc (patch)
tree3a25e5d6c05cecf337212e48cad9dabefbe3c2f1
parentUse quoted run arguments for multiline commands (diff)
Show container list after build
-rw-r--r--.github/workflows/lint-test.yaml67
1 files changed, 35 insertions, 32 deletions
diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml
index faae063..a2fab33 100644
--- a/.github/workflows/lint-test.yaml
+++ b/.github/workflows/lint-test.yaml
@@ -51,36 +51,39 @@ jobs:
cache-to: type=local,type=local,dest=/tmp/.base-buildx-cache,mode=max
tags: ghcr.io/python-discord/snekbox-base:latest
- - name: Build venv image
- uses: docker/build-push-action@v2
- with:
- context: .
- file: ./docker/venv.Dockerfile
- push: false
- load: true
- cache-from: type=local,src=/tmp/.venv-buildx-cache
- cache-to: type=local,type=local,dest=/tmp/.venv-buildx-cache,mode=max
- tags: ghcr.io/python-discord/snekbox-venv:latest
-
- - name: Start Container
- run: 'docker run \
- --tty \
- --detach \
- --name snekbox_test \
- --privileged \
- --hostname pdsnk-dev \
- -e PYTHONDONTWRITEBYTECODE=1 \
- -e PIPENV_PIPFILE="/snekbox/Pipfile" \
- -e ENV="${PWD}/scripts/.profile" \
- --volume "${PWD}":"${PWD}" \
- --workdir "${PWD}"\
- --entrypoint /bin/bash \
- pythondiscord/snekbox-venv:latest'
-
- - name: Install dependencies
- run: "docker exec snekbox_test /bin/bash -c \
- 'pipenv install --system --deploy --dev'"
+ - name: Show Containers
+ run: docker container ls -al
- - name: Run linter
- run: "docker exec snekbox_test /bin/bash -c 'flake8 \
- --format \"::error file=%(path)s,line=%(row)d,col=%(col)d::[flake8] %(code)s: %(text)s\"'"
+# - name: Build venv image
+# uses: docker/build-push-action@v2
+# with:
+# context: .
+# file: ./docker/venv.Dockerfile
+# push: false
+# load: true
+# cache-from: type=local,src=/tmp/.venv-buildx-cache
+# cache-to: type=local,type=local,dest=/tmp/.venv-buildx-cache,mode=max
+# tags: ghcr.io/python-discord/snekbox-venv:latest
+#
+# - name: Start Container
+# run: 'docker run \
+# --tty \
+# --detach \
+# --name snekbox_test \
+# --privileged \
+# --hostname pdsnk-dev \
+# -e PYTHONDONTWRITEBYTECODE=1 \
+# -e PIPENV_PIPFILE="/snekbox/Pipfile" \
+# -e ENV="${PWD}/scripts/.profile" \
+# --volume "${PWD}":"${PWD}" \
+# --workdir "${PWD}"\
+# --entrypoint /bin/bash \
+# pythondiscord/snekbox-venv:latest'
+#
+# - name: Install dependencies
+# run: "docker exec snekbox_test /bin/bash -c \
+# 'pipenv install --system --deploy --dev'"
+#
+# - name: Run linter
+# run: "docker exec snekbox_test /bin/bash -c 'flake8 \
+# --format \"::error file=%(path)s,line=%(row)d,col=%(col)d::[flake8] %(code)s: %(text)s\"'"