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: add ci #16

Merged
merged 10 commits into from
Nov 19, 2023
Merged

ci: add ci #16

merged 10 commits into from
Nov 19, 2023

Conversation

Kuruyia
Copy link
Collaborator

@Kuruyia Kuruyia commented Nov 19, 2023

This adds a GitHub actions CI that is ran on certain events:

  • When pushing or opening a PR to the main branch, the linter is executed on the mobile application and the backend.
    When the backend linter has finished, the container image of each backend microservice is built. They are then pushed to the GitHub container registry if the pipeline has been triggered by a push event. Those images are tagged with edge, the name of the branch (main) and the short hash of the commit (sha-1234567).
  • When pushing a tag that follows the semver convention (v*.*.*), the container image of each backend microservice is built and pushed to the GitHub container registry. Those images are tagged with latest, the version from the tag (1.0.0) and the short hash of the commit (sha-1234567).

Other changes

A Gradle plugin has been installed to provide KtLint tasks on the backend microservices. This is used by the CI and can also be used manually to lint or format the Kotlin code.

KtLint's formatter has been executed.

@Kuruyia Kuruyia added the enhancement New feature or request label Nov 19, 2023
@Kuruyia Kuruyia self-assigned this Nov 19, 2023
@Kuruyia Kuruyia merged commit 63f3437 into thomas-mauran:main Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants