Templates repositories to use as base for repositories. These are shown above as Git submodules and can be accessed by clicking on them.
It also contains some other useful information irrelevant to templates.
-
Create the repository on Github picking the template you want.
-
Set secrets in https://github.com/qdm12/REPONAME_GITHUB/settings/secrets
DOCKERHUB_PASSWORD
PHONITO_TOKEN
(if final Docker image is not based on Scratch)
-
Git clone the repository with:
git clone git@github:qdm12/REPONAME_GITHUB.git cd REPONAME_GITHUB
-
Replace
REPONAME_GITHUB
,REPONAME_DOCKER
andSHORT_DESCRIPTION
:find ./ -type f -exec sed -i 's/REPONAME_DOCKER/realname/g' {} + find ./ -type f -exec sed -i 's/REPONAME_GITHUB/realname/g' {} + find ./ -type f -exec sed -i 's/SHORT_DESCRIPTION/realdescription/g' {} +
-
Work on the code and documentation, make sure:
- Use
$(pwd)
for bind mounts withdocker run
commands - The container runs without root with
USER 1000
orlibcap
orgosu
- Check the container can be restarted without permission issues
- A healthcheck endpoint and Docker is implemented if possible
- Use
-
Upload your changes
git add . && git commit -m "Initial commit" && git push
-
Go to the Github repository github.com/qdm12/REPONAME_GITHUB webpage
- Add topics
- Set the website to hub.docker.com/r/qmcgaw/REPONAME_DOCKER
- Check README.md formatting
- Set the social preview at https://github.com/qdm12/REPONAME_GITHUB/settings
-
Check the workflows at https://github.com/qdm12/REPONAME_GITHUB/actions
-
Go to microbadger.com/images/qmcgaw/REPONAME_DOCKER
-
Get the webhook link
-
Replace the webhook link in
.github/workflows/build-*.yml
with:sed -i 's/WEBHOOK_LINK/realwebhook/g' .github/workflows/build-*.yml
-
-
Upload the changes
git add . && git commit -m "Formatting fixes and microbadger link" && git push
- Add github issues/PR templates
- Other github special files
- React components libary template using Storybook