1
0
mirror of https://github.com/b4tman/docker-squid.git synced 2024-10-31 18:06:53 +00:00

build ssl-bump without docker/build-push-action

This commit is contained in:
Dmitry Belyaev 2023-03-01 16:30:13 +03:00
parent e4ff285091
commit 4af565e3ae
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -66,26 +66,10 @@ jobs:
- name: Test image
run: docker compose -f docker-compose.test.yml up --pull never sut
- name: set base image for ssl-bump
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: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
sed -i "s%FROM b4tman/squid%FROM $TEST_TAG%" ssl-bump/Dockerfile
docker build ssl-bump
push:
needs: test