Skip to content

Commit

Permalink
Fix tag evaluation when building docker images on GH actions (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
dovvla authored Dec 25, 2024
1 parent 4967abc commit 46ff4f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function "eval_tags" {
equal("", github_repo) ? image_name : "",
equal("", github_repo) && notequal("", commit_sha) ? "${image_name}:${commit_sha}" : "",
// otherwise, we are building on GitHub Actions
notequal("", github_repo) ? "ghcr.io/${github_repo}/${image_name}:latest" : "",
notequal("", github_repo) && notequal("", commit_sha) ? "ghcr.io/${github_repo}:${commit_sha}" : ""
notequal("", github_repo) ? "ghcr.io/memristor/${image_name}:latest" : "",
notequal("", github_repo) && notequal("", commit_sha) ? "ghcr.io/memristor/${image_name}:${commit_sha}" : ""
]
}

Expand Down

0 comments on commit 46ff4f8

Please sign in to comment.