fix(app/action): add --rm to auto-clean docker images

This commit is contained in:
lowlighter
2022-04-24 13:17:54 -04:00
parent 5e3460fa0b
commit 1bf3b92544
7 changed files with 305 additions and 305 deletions

View File

@@ -1197,12 +1197,12 @@ jobs:
user: lowlighter
plugins_errors_fatal: yes
if: ${{ success() || failure() }}
- name: Screenshot markdown example
if: ${{ success() || failure() }}
run: |
docker run --entrypoint="" --volume=/tmp:/tmp ghcr.io/lowlighter/metrics:master node /metrics/.github/scripts/markdown_example.mjs
docker run --rm --entrypoint="" --volume=/tmp:/tmp ghcr.io/lowlighter/metrics:master node /metrics/.github/scripts/markdown_example.mjs
sudo mv /tmp/metrics.markdown.png /metrics_renders/
- name: Publish examples
if: ${{ success() || failure() }}

View File

@@ -46,7 +46,7 @@ jobs:
- name: Build lowlighter/metrics:${{ github.head_ref || 'master' }}
run: docker build -t lowlighter/metrics:$(echo ${{ github.head_ref || 'master' }} | sed 's/\//-/g') .
- name: Run tests
run: docker run --entrypoint="" lowlighter/metrics:$(echo ${{ github.head_ref || 'master' }} | sed 's/\//-/g') npm run test-metrics
run: docker run --rm --entrypoint="" lowlighter/metrics:$(echo ${{ github.head_ref || 'master' }} | sed 's/\//-/g') npm run test-metrics
# Run CodeQL on branch
analyze: