Add local revision tag

This commit is contained in:
Pau Rodriguez-Estivill
2021-03-07 14:39:40 +01:00
parent f97585e5ef
commit 7d841fadb3
4 changed files with 89 additions and 20 deletions
+7 -1
View File
@@ -39,5 +39,11 @@ docker buildx bake --pull -f config.hcl
In order to publish directly to the repository run this command instead:
```sh
docker buildx bake --pull --set common.output=type=registry -f config.hcl
docker buildx bake --pull --push -f config.hcl
```
Also, optionally, it can also generate build revision tags from last git commit (like `./publish.sh` script does):
```sh
BUILDREV=$(git rev-parse --short HEAD) docker buildx bake --pull --push -f config.hcl
```