fix(app/action): add --rm to auto-clean docker images
This commit is contained in:
4
.github/workflows/examples.yml
vendored
4
.github/workflows/examples.yml
vendored
@@ -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() }}
|
||||
|
||||
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user