mirror of
https://github.com/b4tman/docker-squid.git
synced 2024-11-01 02:16:52 +00:00
build ssl-bump without docker/build-push-action
This commit is contained in:
parent
e4ff285091
commit
4af565e3ae
22
.github/workflows/dockerimage.yml
vendored
22
.github/workflows/dockerimage.yml
vendored
@ -66,26 +66,10 @@ jobs:
|
|||||||
- name: Test image
|
- name: Test image
|
||||||
run: docker compose -f docker-compose.test.yml up --pull never sut
|
run: docker compose -f docker-compose.test.yml up --pull never sut
|
||||||
|
|
||||||
- name: set base image for ssl-bump
|
- name: Build 'ssl-bump' image
|
||||||
run: sed -i "s%FROM b4tman/squid%FROM $TEST_TAG%" ssl-bump/Dockerfile
|
|
||||||
|
|
||||||
- name: Build 'ssl-bump' image
|
|
||||||
uses: docker/build-push-action@v4
|
|
||||||
with:
|
|
||||||
context: ssl-bump
|
|
||||||
push: false
|
|
||||||
file: ssl-bump/Dockerfile
|
|
||||||
tags: b4tman/squid: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: |
|
run: |
|
||||||
rm -rf /tmp/.buildx-cache
|
sed -i "s%FROM b4tman/squid%FROM $TEST_TAG%" ssl-bump/Dockerfile
|
||||||
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
|
docker build ssl-bump
|
||||||
|
|
||||||
push:
|
push:
|
||||||
needs: test
|
needs: test
|
||||||
|
Loading…
Reference in New Issue
Block a user