ci/cd fix .deb fetching in Linux core tests

This commit is contained in:
Théophile Diot 2023-09-18 16:24:36 +02:00
parent fa91bf6c60
commit 61bc8a3b10
No known key found for this signature in database
GPG Key ID: 248FEA4BAE400D06
1 changed files with 8 additions and 3 deletions

View File

@ -30,8 +30,11 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pull BW linux ubuntu test image
run: docker pull ghcr.io/bunkerity/ubuntu-tests:${{ inputs.RELEASE }}
- name: Run BW linux ubuntu test image
run: docker run --rm -v /tmp/bunkerweb_deb:/data ghcr.io/bunkerity/ubuntu-tests:${{ inputs.RELEASE }}
- name: Copy deb file to host
run: |
container_id=$(docker create "ghcr.io/bunkerity/ubuntu-tests:${{ inputs.RELEASE }}")
docker cp "$container_id:/opt/bunkerweb_dev-1_amd64.deb" "/tmp/bunkerweb.deb"
docker rm "$container_id"
- name: Install BunkerWeb
run: |
# Install NGINX
@ -49,4 +52,6 @@ jobs:
echo "SERVER_NAME=www.example.com" > /etc/bunkerweb/variables.env
{ echo "HTTP_PORT=80"; echo "HTTPS_PORT=443"; echo "DNS_RESOLVERS=9.9.9.9 8.8.8.8 8.8.4.4"; } >> /etc/bunkerweb/variables.env
- name: Run tests
run: ./test.sh "linux"
run: |
cd ./tests/core/${{ inputs.TEST }}
./test.sh "linux"