ci: add docker container cleanup before test run
CI Pipeline / HTML Lint (push) Successful in 7s
Deploy QA / Build and Push (push) Successful in 13s
CI Pipeline / Build Docker Image (push) Failing after 37s
CI Pipeline / Security Scan (push) Has been skipped
Deploy QA / Deploy to QA (push) Failing after 1s
CI Pipeline / Generate Summary (push) Failing after 1s
Deploy QA / Notification (push) Failing after 1s
CI Pipeline / HTML Lint (push) Successful in 7s
Deploy QA / Build and Push (push) Successful in 13s
CI Pipeline / Build Docker Image (push) Failing after 37s
CI Pipeline / Security Scan (push) Has been skipped
Deploy QA / Deploy to QA (push) Failing after 1s
CI Pipeline / Generate Summary (push) Failing after 1s
Deploy QA / Notification (push) Failing after 1s
add docker stop and rm commands for ci-test container with || true to avoid name conflicts from leftover containers from prior CI runs
This commit is contained in:
@@ -67,6 +67,8 @@ jobs:
|
|||||||
- name: Verify image starts
|
- name: Verify image starts
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
docker stop ci-test || true
|
||||||
|
docker rm ci-test || true
|
||||||
docker run -d --name ci-test \
|
docker run -d --name ci-test \
|
||||||
-e APP_ENV=ci \
|
-e APP_ENV=ci \
|
||||||
-e APP_VERSION=ci-${{ gitea.sha }} \
|
-e APP_VERSION=ci-${{ gitea.sha }} \
|
||||||
|
|||||||
Reference in New Issue
Block a user