GithubHelp home page GithubHelp logo

Comments (4)

felicianotech avatar felicianotech commented on August 29, 2024

What is tagging the image in the first place? Normally when I create tags I use latest and/or the commit hash. The hash is already available in a env variable in Circle so I would use that.

For other persistent cases, if it makes sense, I use a shell script for which you can export a variable within that script for all commands. Otherwise, yes a temp file would do the trick. Caching the file for use across builds is useful too.

I would love to learn more about your use case, and hopefully get more feedback from people on here and we can go ahead and modify this page to include examples as you mentioned.

from circleci-docs.

felicianotech avatar felicianotech commented on August 29, 2024

@antony Would you be able to provide a response?

from circleci-docs.

antony avatar antony commented on August 29, 2024

Hi @felicianotech

Apologies for not replying sooner, been a bit snowed under.

The image I'm building is being tagged in the deploy: block, and I was using the generated image ID to further tag the image for the deployed servers.

I think using the CIRCLE_SHA or the commit hash would work equally well in this instance - hadn't thought of that! So yeah, perhaps this persisting of env variables isn't necessary at all.

Cheers,
Antony

from circleci-docs.

felicianotech avatar felicianotech commented on August 29, 2024

Okay no worries. If you think of another use case you can always create a new feature request in https://discuss.circleci.com.

Thanks for the response. Have a good one.

from circleci-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.