Comments (4)
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.
@antony Would you be able to provide a response?
from circleci-docs.
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.
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)
- Command for artefacts downloading is wrong HOT 1
- Broken links for CircleCI academy HOT 1
- OICD AWS Provider - Old AWS orb version not consistent with > 4.0 version causing issues with AWS Credentials configuration HOT 1
- Suggestion: add a one-liner for downloading all artefacts from a workflow HOT 3
- Prerequisites for machine runner on macOS are confusing HOT 1
- Broken YAML rendering with NoScript
- Incorrect link to blog post in ip-ranges HOT 1
- I am looking for an API to stop building a project
- --timings-type Valid timing types are not documented correctly HOT 2
- Nightly jobs, incorrect docs HOT 1
- Incorrect workaround for PostgreSQL binaries
- Bug
- Retro
- EU Pedro Ferreira Morais no meu desenvolvimento e carteira PayPal só encontro ERRO e Debug algo parecido. https://github.com/ASSIAPLI/.github/blob/master/CONTRIBUTING.md ASSIAPLI'BANCK
- <<pipeline.git.tag>> is no longer working to trigger when step HOT 1
- feat: Add how to deploy in azure container apps
- Circle CI VSCode extension keeps writing to .vscode/settings.json HOT 2
- How to set up the gradle version of CI HOT 4
- Suggestion on Rerun Tests Documentation
- Please provide a schema for the `config.yml`, in particular version 2.1 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from circleci-docs.