Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#466] Enhancing Docker Compose stack for proper frontend image tagging #468

Conversation

placek
Copy link
Contributor

@placek placek commented Mar 13, 2024

Closes #466.

Purpose of the Changes:

The purpose of these changes is to fix the Docker Compose stack in order to
properly tag frontend images with environment-specific flags. This improvement
aims to address the issue where frontend images generated based on the last
commit SHA were inadequate due to variations in build arguments and deployment
settings across different environments. By introducing an environment flag to
the image tag, the goal is to ensure that the correct frontend build is utilized
for each specific deployment environment.

Outcome of the Changes:

The introduced modification includes updating the Makefile in the
govtool/frontend directory to incorporate an environment tag to the image tag
name used during frontend image builds. This new tag generation process merges
the environment variable with the commit hash retrieved from the git log
command, guaranteeing a unique identification for each build based on the
environment. Consequently, applications sharing the same version can now be
distinctly recognized across diverse deployment environments, improving
deployment accuracy and environment segregation.

To ensure frontend image builds can distinguish between different
environments, an additional distinction based on the environment tag has
been introduced. This change was necessary as the commit altering the
frontend module alone was insufficient. By adding an environment tag to
the image tag name, applications with the same version can now be
uniquely identified across various environments.

Changes Made:
- Modified the Makefile in the govtool/frontend directory to introduce
  an environment tag to the image tag name used in frontend image
  builds. The new tag is generated by appending the environment variable
  to the commit hash obtained from the git log command, ensuring each
  build is uniquely identified per environment.
@placek placek added 🐛 Bug Something isn't working 🏗 Infrastructure labels Mar 13, 2024
@placek placek self-assigned this Mar 13, 2024
@placek placek linked an issue Mar 13, 2024 that may be closed by this pull request
4 tasks
@placek placek merged commit eb74647 into develop Mar 13, 2024
1 check passed
@placek placek deleted the hotfix/466-enhancing-docker-compose-stack-for-proper-frontend-image-tagging branch March 13, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working 🏗 Infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancing Docker Compose stack for proper frontend image tagging
2 participants