Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Terraform Images
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
Terraform Images
Commits
9a91b51b
Commit
9a91b51b
authored
4 years ago
by
Matt Kasa
Browse files
Options
Downloads
Patches
Plain Diff
fix: Update stable:latest tag based on STABLE_VERSION
parent
be8f6adf
Branches
mattkasa-stable-tag-support
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+4
-0
4 additions, 0 deletions
.gitlab-ci.yml
CONTRIBUTING.md
+8
-0
8 additions, 0 deletions
CONTRIBUTING.md
with
12 additions
and
0 deletions
.gitlab-ci.yml
+
4
−
0
View file @
9a91b51b
variables
:
STABLE_VERSION
:
"
0.12"
STABLE_IMAGE_NAME
:
"
$CI_REGISTRY_IMAGE/stable:latest"
BUILD_IMAGE_NAME
:
"
$CI_REGISTRY_IMAGE/branches/$CI_COMMIT_REF_SLUG-$TERRAFORM_VERSION:$CI_COMMIT_SHA"
RELEASE_IMAGE_NAME
:
"
$CI_REGISTRY_IMAGE/releases/$TERRAFORM_VERSION"
TF_ADDRESS
:
"
$CI_API_V4_URL/projects/$CI_PROJECT_ID/terraform/state/$CI_JOB_ID"
...
...
@@ -48,6 +50,8 @@ stages:
-
docker image tag "$BUILD_IMAGE_NAME" "$RELEASE_IMAGE_NAME:$CI_COMMIT_TAG"
-
docker image push "$RELEASE_IMAGE_NAME:latest"
-
docker image push "$RELEASE_IMAGE_NAME:$CI_COMMIT_TAG"
-
if [ "$TERRAFORM_VERSION" = "$STABLE_VERSION" ]; then docker image tag "$BUILD_IMAGE_NAME" "$STABLE_IMAGE_NAME"; fi
-
if [ "$TERRAFORM_VERSION" = "$STABLE_VERSION" ]; then docker image push "$STABLE_IMAGE_NAME"; fi
only
:
-
tags
...
...
This diff is collapsed.
Click to expand it.
CONTRIBUTING.md
+
8
−
0
View file @
9a91b51b
...
...
@@ -22,3 +22,11 @@ an empty commit sumarizing your changes like so:
```
git commit --allow-empty -m '[BREAKING CHANGE|feat|fix]: <changelog summary message
### Stable tag
This project updates a `stable:latest` tag in the container registry which
tracks the latest build of the image specified in `STABLE_VERSION` in
`.gitlab-ci.yml`. Simply update this to reflect what version series is
considered stable by upstream and the `stable:latest` tag will be updated
automatically.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment