Push Dockerhub README.md file on release
Add stage 'readme' and job 'readme_docker_release_tag' to push the file 'docker/README.md' to the team's duniter-v2s repo.
The job uses chko/docker-pushrm and is adapted from the related Gitlab CI/CD example.
Merge request reports
Activity
assigned to @pini-gh
This is a work in progress MR on top of the previous one (branch 'pini-docker').
I've just copy/pasted and adapted the docker-pushrm Gitlab CI/CD example. The job runs only on versioned release because - IMHO - the README should match the current latest image.
But I don't know how to test it. Could you ping someone in the team knowledgeable in Gitlab CI/CD to review this proposal?
BTW this MR also adds 'sha-latest' Docker tag on sha release.
- Resolved by Millicent Billette
It works
See: https://hub.docker.com/repository/docker/pinidh/duniter-v2s/generalNote: I had to change the rule on my repo to trigger the job manually. I guess this is not wanted here because the README should be updated on official release only.
added 7 commits
-
236a4a4c - 1 commit from branch
pini-docker
- 119f7d71 - ci: docker tag 'sha-latest'
- 2d6dfe87 - docker: push README.md on release
- 02d97bbf - ci: rename stage readme to deploy_readme
- 6de50f44 - ci: deploy_readme: fix target path
- 6c8d7b80 - ci: use anonymized variables for dockerhub
- 3189d769 - ci: trigger readme_docker_release_tag manually
Toggle commit list-
236a4a4c - 1 commit from branch
added 20 commits
-
3189d769...bae38a79 - 15 commits from branch
pini-docker
- b22e832b - docker: document docker image usage with README.md
- 31a0c351 - ci: docker tag 'sha-latest'
- a0e261df - docker: push README.md on release
- 4b0e4d57 - ci: rename stage readme to deploy_readme
- d0013312 - ci: deploy_readme: fix target path
Toggle commit list-
3189d769...bae38a79 - 15 commits from branch
added C-cicd label
added RN-silent label
added 3 commits
-
41d37d19...dacbfa8f - 2 commits from branch
master
- 56b7b2e6 - docker: push README.md on release
-
41d37d19...dacbfa8f - 2 commits from branch
added 2 commits
added 5 commits
-
a3b53828...3aca4ecd - 4 commits from branch
master
- 67a84f95 - docker: push README.md on release
-
a3b53828...3aca4ecd - 4 commits from branch
added 5 commits
-
67a84f95...cee8975b - 4 commits from branch
master
- e063a6fd - docker: push README.md on release
-
67a84f95...cee8975b - 4 commits from branch