Skip to content

Feature continuous deployment#11

Merged
magley merged 16 commits into
developfrom
feature-continuous-deployment
Aug 1, 2025
Merged

Feature continuous deployment#11
magley merged 16 commits into
developfrom
feature-continuous-deployment

Conversation

@magley

@magley magley commented Aug 1, 2025

Copy link
Copy Markdown
Member

CI/CD implemented.

Check README.md on how to run integration tests properly.

Some notes:

  • for integration tests, the test runner and the actual service are separate containers.
  • added a health check endpoint used by the test runner so it doesn't start testing too soon
  • In the main compose.yml, this line :${VERSION:-localDevDefault} is used to capture the version when building. It uses VERSION from the environment. If it's not set, then the tag will be localDevDefault.
  • removed container name from compose files because of conflicts when I do docker compose up
  • the deploy workflow script doesn't run tests. It's assumed we will never commit anything directly to develop. This is to reduce usage of free Actions minutes per month (I'm not sure how much we'd have to run CI/CD workflows for this to matter...)

magley added 12 commits July 30, 2025 13:23
The cache in Dockerfiles is build cache and cannot be used during runtime. Adding a named volume to the package directory will speed things up in subsequent test runs. I'm not sure if this will work remotely, but it doesn't matter. This is for dev.
Because Alpine refuses to run scripts if they are CLRF, saying that the file is not found.
I still need to fix user-service ending if database is not set up, as well as have the test-runner wait for user-service (like it does for the database).
Since alpine doesn't have curl installed, I used wget to submit a health check.
@magley
magley requested a review from Vasilijez August 1, 2025 10:25
@magley magley self-assigned this Aug 1, 2025
@magley magley added the feature New functional or non-functional requirement implementation. label Aug 1, 2025
magley added 4 commits August 1, 2025 12:28
Not sure if this will work. Also, the keys seem to be missing in the repo settings? Did I forget to add them, or were they removed...?
Because deployment should happen on push to dev/master and not during pull requests.

@Vasilijez Vasilijez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice work. It's really interesting to see how the integration tests are performed.

Comment thread src/test/integration/util.go
Comment thread compose.yml
@magley
magley merged commit 6a40953 into develop Aug 1, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New functional or non-functional requirement implementation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants