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

Ci/docker build push #2171

Merged
merged 10 commits into from
Aug 5, 2024
Merged

Ci/docker build push #2171

merged 10 commits into from
Aug 5, 2024

Conversation

zerg-su
Copy link
Contributor

@zerg-su zerg-su commented Aug 4, 2024

Referenced issues

Description of the Change

  1. Refactored Docker Image Build for CI:
    • Rewrote the Docker image build process to enhance CI efficiency and consistency.

  2. Container Save Step:
    • Integrated a step to save containers into our infrastructure.

  3. Tag-based Deployment:
    • Implemented logic to push images to the repository with a tag if the commit has one. This applies both to the Git repository and Docker registry.

  4. Docker Tag Naming for Main Branch:
    • For the main branch, the Docker image tag will follow the pattern <short_commit_tag>-master. This needs verification to ensure correct implementation.

  5. Future Repository Management:
    • The tagging scheme will potentially allow filtering and cleaning old builds from the repository in the future.

  6. CI and Helm Chart Changes:
    • Updated the CI pipeline and Helm charts. The current version for our images is 0.0.0-rc.26.

  7. Container Name Uniqueness:
    • Changed container naming convention for better log filtering. The new format is {{ $appName }}-{{ $nodeChain }}-{{ .Values.image.tag }}.

  8. Removal of Tini Download Step:
    • Removed the Helm chart step where Tini was downloaded, as it is now included in the container image. Consequently, the new chart is incompatible with older containers. For those requiring the old setup, continue using version 0.0.0-rc.24 (where Tini is not included in the image).

  9. Security Improvement:
    • Made a minor enhancement in credential handling during the container build process to eliminate potential security issues.

Possible Drawbacks

• Compatibility Check: Ensure that the new Helm chart is used only with the updated containers that include Tini.

Checklist Before Opening a PR

Before you open a Pull Request (PR), please make sure you've completed the following steps and confirm by answering 'Yes' to each item:

  1. Code is formatted: Have you run your code through clang-format to ensure it adheres to the project's coding standards? [Yes]
  2. Code is documented: Have you added comments and documentation to your code according to the guidelines in the project's contributing guidelines? [Yes]
  3. Self-review: Have you reviewed your own code to ensure it is free of typos, syntax errors, logical errors, and unresolved TODOs or FIXME without linking to an issue? [Yes]
  4. Zombienet Tests: Have you ensured that the zombienet tests are passing? Zombienet is a network simulation and testing tool used in this project. It's important to ensure that these tests pass to maintain the stability and reliability of the project. [Yes]

Copy link
Contributor

@igor-egorov igor-egorov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💪

@zerg-su zerg-su enabled auto-merge (squash) August 5, 2024 10:59
@zerg-su zerg-su merged commit 2dcb19f into master Aug 5, 2024
16 of 19 checks passed
@zerg-su zerg-su deleted the ci/docker-build-push branch August 5, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants