Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 committed Dec 8, 2024
1 parent 27959eb commit 26af1fb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
variable "GITHUB_REPOSITORY" {}

variable "DOCKER_METADATA_OUTPUT_TAGS" {}

group "default" {
targets = [
"service1",
Expand All @@ -15,12 +13,12 @@ target "service1" {
inherits = ["docker-metadata-action"]
context = "."
dockerfile = "service1.dockerfile"
tags = ["ghcr.io/${GITHUB_REPOSITORY}/service1:${DOCKER_METADATA_OUTPUT_TAGS}"]
tags = ["ghcr.io/${GITHUB_REPOSITORY}/service1:${target.docker-metadata-action.tags}"]
}

target "service2" {
inherits = ["docker-metadata-action"]
context = "."
dockerfile = "service2.dockerfile"
tags = ["ghcr.io/${GITHUB_REPOSITORY}/service2:${DOCKER_METADATA_OUTPUT_TAGS}"]
tags = ["ghcr.io/${GITHUB_REPOSITORY}/service2:${target.docker-metadata-action.tags}"]
}

0 comments on commit 26af1fb

Please sign in to comment.