Notes by KargWare
Software | Web | QA-CI-CD | Apps | Hardware
Impressum Datenschutz
Tags Categories Dates
 Seitenende 

Archive of Notes by KargWare

2020-10-23
Create a Docker image with git commit as tag
2020-10-23 Nicolas Karg
SOFTWARE
dockergit

The script will create a Docker image from a `Dockerfile` from the same folder. The image will be taged with `latest` and additional with the `short git hash` of the last commit. The image will be `pushed` to the default docker registry. Replace `my-company` and `my-image-name` with the real names. ```sh {:codelabel="shell" filename="createDockerBuilder.sh"} #!/bin/sh IMAGE_NAME=my-company/my-image-name LAST_COMMIT=$(git rev-parse --short HEAD) echo $LAST_COMMIT do…

 Seitenanfang 

Kargware

  • RSS-Feed
  • GitHub
  • GitLab
  • Twitter
  • Instagram
  • Stackoverflow
  • Nuget

Website

  • Impressum
  • Datenschutz
  • Info

Services

  • Wordpress Blog
  • Jekyll Notes
  • NextCloud
  • OwnCloud
  • Matomo
  • YOURLS