Commit 65575642 authored by Guillaume Charifi's avatar Guillaume Charifi

Force Docker cache flush on build.

parent 8e694bd0
Pipeline #583 passed with stage
in 9 minutes and 1 second
......@@ -12,7 +12,7 @@ build:
stage: build
script:
- docker rmi -f "nodejscontainer:latest"
- docker build -t "nodejscontainer:latest" .
- docker build -t "nodejscontainer:latest" --build-arg CACHEBUST="$(date +%s)" .
- docker rmi -f "$CI_REGISTRY_IMAGE:latest"
- docker tag "nodejscontainer:latest" "$CI_REGISTRY_IMAGE:latest"
- docker push "$CI_REGISTRY_IMAGE:latest"
......
FROM debian:unstable-slim
MAINTAINER Guillaume Charifi <guillaume.charifi@sfr.fr>
ARG CACHEBUST=1
RUN apt-get -qq update && \
apt-get upgrade -qqyy && \
apt-get install -qqyy \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment