Fix specific case in workflow files for 1.6 tests

This commit is contained in:
Théophile Diot 2024-06-25 12:22:03 +01:00
parent ac5569132c
commit 0e7d4de66b
No known key found for this signature in database
GPG key ID: FA995104A0BA376A
2 changed files with 14 additions and 0 deletions

View file

@ -57,10 +57,17 @@ jobs:
- name: Pull BW linux ubuntu test image
run: docker pull ghcr.io/bunkerity/ubuntu-tests:${{ inputs.RELEASE }}
- name: Copy deb file to host
if: inputs.RELEASE != '1.6'
run: |
container_id=$(docker create "ghcr.io/bunkerity/ubuntu-tests:${{ inputs.RELEASE }}")
docker cp "$container_id:/opt/bunkerweb_${{ inputs.RELEASE }}-1_amd64.deb" "/tmp/bunkerweb.deb"
docker rm "$container_id"
- name: Copy deb file to host 1.6
if: inputs.RELEASE == '1.6'
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 NGINX
run: |
export NEEDRESTART_SUSPEND=1

View file

@ -57,10 +57,17 @@ jobs:
- name: Pull BW linux ubuntu test image
run: docker pull ghcr.io/bunkerity/ubuntu-tests:${{ inputs.RELEASE }}
- name: Copy deb file to host
if: inputs.RELEASE != '1.6'
run: |
container_id=$(docker create "ghcr.io/bunkerity/ubuntu-tests:${{ inputs.RELEASE }}")
docker cp "$container_id:/opt/bunkerweb_${{ inputs.RELEASE }}-1_amd64.deb" "/tmp/bunkerweb.deb"
docker rm "$container_id"
- name: Copy deb file to host 1.6
if: inputs.RELEASE == '1.6'
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 NGINX
run: |
export NEEDRESTART_SUSPEND=1