Skip to content

Conversation

@solsson
Copy link
Contributor

@solsson solsson commented Mar 27, 2017

As an alternative to #22. Jenkins has https://issues.jenkins-ci.org/browse/JENKINS-26520.

To use this to disable caching of a run step (inspired by http://stackoverflow.com/questions/36996046/how-to-prevent-dockerfile-caching-git-clone):

In a build contract compose yml:

services:
  x:
    build:
      context: ../
      args:
        timestamp: ${BUILD_TIMESTAMP}

and dockerfile

RUN BUILD_TIMESTAMP=${timestamp} \
  && my-stuff-that-should-not-be-cached

@solsson solsson force-pushed the build-timestamp-env branch from 348c4fa to 9877d32 Compare March 27, 2017 14:21
@atamon atamon merged commit 2af1f2b into master Mar 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants