fix(ci-runner): use pre-built luna-charts-test image for component tests
Drops the in-pipeline docker build/push step and docker-in-docker dependency entirely. The test image (built from Dockerfile.test) is now built and pushed manually/out-of-band, tagged by playwright version. component-tests just pulls and runs it directly.
This commit is contained in:
@@ -68,39 +68,10 @@ jobs:
|
||||
- name: Run unit tests
|
||||
run: pnpm test:unit
|
||||
|
||||
build-test-image:
|
||||
runs-on: ubuntu-docker-dind
|
||||
container:
|
||||
image: git.byting-pandas.ninja/ci/node22-docker:latest
|
||||
credentials:
|
||||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
options: --network host
|
||||
env:
|
||||
DOCKER_HOST: tcp://localhost:2375
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Wait for docker daemon
|
||||
run: |
|
||||
for i in $(seq 1 30); do
|
||||
docker info > /dev/null 2>&1 && break
|
||||
echo "waiting for docker daemon... ($i/30)"
|
||||
sleep 2
|
||||
done
|
||||
docker info
|
||||
|
||||
- name: Build and push test image
|
||||
run: |
|
||||
docker login git.byting-pandas.ninja -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_TOKEN }}
|
||||
docker build -t git.byting-pandas.ninja/ci/luna-charts-test:${{ gitea.sha }} -f Dockerfile.test .
|
||||
docker push git.byting-pandas.ninja/ci/luna-charts-test:${{ gitea.sha }}
|
||||
|
||||
component-tests:
|
||||
needs: build-test-image
|
||||
runs-on: ubuntu-docker-dind
|
||||
container:
|
||||
image: git.byting-pandas.ninja/ci/luna-charts-test:${{ gitea.sha }}
|
||||
image: git.byting-pandas.ninja/ci/luna-charts-test:v1.62.1
|
||||
credentials:
|
||||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user