Is it mistake in "How to Build a Docker Image on CircleCI 2.0"?

I read this article.

It’s very helpful for me to build new CI environment on Docker in Docker!

But I think I found a mistake about a example config.yml.

      - restore_cache:
          keys:
            - v1-{{ .Branch }}
          paths:
            - /caches/app.tar
~~~~
      - save_cache:
          key: v1-{{ .Branch }}-{{ epoch }}
          paths:
            - /caches/app.tar

I think restore_cache can’t restore correct app.tar because save_cache saves a different key from restore_cache.
Otherwise, In fact It’s available?

Good question. I think I copied that down from the docs when I was learning CircleCI, and then never fixed it :smiley_cat:

Is epoch the same as a Unix timestamp?

1 Like

This topic was automatically closed 166 days after the last reply. New replies are no longer allowed.