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

Add CI/CD #74

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Add CI/CD #74

wants to merge 5 commits into from

Conversation

drunkbatya
Copy link

@drunkbatya drunkbatya commented May 13, 2024

Added CI/CD for automatic build and push docker image to dockerhub. Build process will appear on the Github Hosted runners.

To make it work you need to provide 3 repository secrets:
REGISTRY_LOGIN - login for dockerhub
REGISTRY_PASSWORD - password for dockerhub
IMAGE_NAME - fully-qualified name of image e.g. TradeMe/ReviewMe

Also i've changed build behavior in Dockerfile - passing repo files directly insted of installing some version, to make all version control on the github side.

Default strategy will be:
Every commit to master branch will be pushed to $IMAGE_NAME:master, and every tag will be $IMAGE_NAME:$TAG_NAME.

Also, i've added creating separate data directory for persistent files - /var/lib/reviewme, now it used for storing only published_reviews.json.

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.

1 participant