...
 
Commits (2)
......@@ -12,8 +12,9 @@ build:
test:
stage: test
script:
- docker save $tag > image.tar
- docker run --rm -i $tag < image.tar > squashed.tar
- docker import squashed.tar $tag
- >-
docker save $tag |
docker run --rm -i $tag -from root -t $tag |
docker load
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $repo
- docker push $tag
\ No newline at end of file
FROM alpine
ARG TAG=v0.2.0
RUN apk update && apk add tar
RUN wget -O- https://github.com/jwilder/docker-squash/releases/download/$TAG/docker-squash-linux-amd64-$TAG.tar.gz \
| tar -C /usr/local/bin -xzvf -
ENTRYPOINT ["/usr/local/bin/docker-squash"]
\ No newline at end of file