summaryrefslogtreecommitdiff
path: root/vendor/github.com/docker/distribution/docker-bake.hcl
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/docker/distribution/docker-bake.hcl')
-rw-r--r--vendor/github.com/docker/distribution/docker-bake.hcl21
1 files changed, 6 insertions, 15 deletions
diff --git a/vendor/github.com/docker/distribution/docker-bake.hcl b/vendor/github.com/docker/distribution/docker-bake.hcl
index 4dd5a100c..91686e608 100644
--- a/vendor/github.com/docker/distribution/docker-bake.hcl
+++ b/vendor/github.com/docker/distribution/docker-bake.hcl
@@ -1,15 +1,3 @@
-// GITHUB_REF is the actual ref that triggers the workflow
-// https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
-variable "GITHUB_REF" {
- default = ""
-}
-
-target "_common" {
- args = {
- GIT_REF = GITHUB_REF
- }
-}
-
group "default" {
targets = ["image-local"]
}
@@ -20,13 +8,11 @@ target "docker-metadata-action" {
}
target "binary" {
- inherits = ["_common"]
target = "binary"
output = ["./bin"]
}
target "artifact" {
- inherits = ["_common"]
target = "artifact"
output = ["./bin"]
}
@@ -43,8 +29,13 @@ target "artifact-all" {
]
}
+// Special target: https://github.com/docker/metadata-action#bake-definition
+target "docker-metadata-action" {
+ tags = ["registry:local"]
+}
+
target "image" {
- inherits = ["_common", "docker-metadata-action"]
+ inherits = ["docker-metadata-action"]
}
target "image-local" {