mirror of
https://github.com/b4tman/docker-squid.git
synced 2025-07-27 22:53:27 +00:00
sslbump: rootless (#125)
sslbump: shell script instead of long cmd add 'ssl-bump' image test add access_for_localnet for image test allow_all instead of localnet for test change test conf fix test compose
This commit is contained in:
31
.github/workflows/dockerimage.yml
vendored
31
.github/workflows/dockerimage.yml
vendored
@@ -65,13 +65,38 @@ jobs:
|
||||
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
|
||||
|
||||
- name: Test image
|
||||
run: docker compose -f docker-compose.test.yml up --pull never sut
|
||||
run: |
|
||||
set -ex
|
||||
docker compose -f docker-compose.test.yml up --pull never sut --exit-code-from sut
|
||||
docker compose -f docker-compose.test.yml down
|
||||
|
||||
- name: Build 'ssl-bump' image
|
||||
- name: set base image for 'ssl-bump'
|
||||
run: |
|
||||
sed -i "s%FROM b4tman/squid%FROM $TEST_TAG%" ssl-bump/Dockerfile
|
||||
docker build ssl-bump
|
||||
|
||||
- name: Build 'ssl-bump' image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: false
|
||||
load: true
|
||||
tags: ${{ env.TEST_TAG }}-ssl-bump
|
||||
cache-from: type=local,src=/tmp/.buildx-cache
|
||||
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
|
||||
|
||||
# Temp fix
|
||||
# https://github.com/docker/build-push-action/issues/252
|
||||
# https://github.com/moby/buildkit/issues/1896
|
||||
- name: Move cache
|
||||
run: |
|
||||
rm -rf /tmp/.buildx-cache
|
||||
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
|
||||
|
||||
- name: Test 'ssl-bump' image
|
||||
run: |
|
||||
set -ex
|
||||
TEST_TAG="${TEST_TAG}-ssl-bump" docker compose -f docker-compose.test.yml up --pull never sut --exit-code-from sut
|
||||
docker compose -f docker-compose.test.yml down
|
||||
push:
|
||||
needs: test
|
||||
runs-on: ubuntu-20.04
|
||||
|
Reference in New Issue
Block a user