SocialFinanceDigitalLabs / liia-tools-pipeline

Tools to be used for 903
MIT License
1 stars 0 forks source link

Use Github Actions CI/CD to build and Deploy code server to Docker Hub #30

Closed cyramic closed 1 month ago

cyramic commented 3 months ago

We want to run a docker build of the code server and push to docker hub when various github actions take place. There are TWO code servers that need to be done here.

Commit to main--> build and push with "latest" tag Release --> build and push with version tag matching release Name of the Repo: sfdl/fons-code-server-org - Links to Dockerfile_Org file in repo sfdl/fons-code-server-client - Links to Dockerfile_Client file in repo

Examples of tags: sfdl/fons-code-server-client:latest (for commits to main, pushing to staging environment) sfd/fons-code-server-client:0.3.0 (for release tagging)

I believe the tag can be fetched from github using this in the github actions file: ${{ github.ref_name }}