chore: Upgraded to new workflow
This commit is contained in:
@@ -9,10 +9,10 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
uses: dreaded_x/workflows/.gitea/workflows/rust-kubernetes.yaml@22ee0c1788a8d2157db87d6a6f8dbe520fe48592
|
||||
uses: dreaded_x/workflows/.gitea/workflows/docker-kubernetes.yaml@2be45c8128b7ccec93c49e69e807bb20727ca56b
|
||||
secrets: inherit
|
||||
with:
|
||||
upload_manifests: false
|
||||
push_manifests: false
|
||||
|
||||
deploy:
|
||||
name: Deploy container
|
||||
|
||||
33
docker-bake.hcl
Normal file
33
docker-bake.hcl
Normal file
@@ -0,0 +1,33 @@
|
||||
variable "TAG_BASE" {}
|
||||
variable "RELEASE_VERSION" {}
|
||||
|
||||
group "default" {
|
||||
targets = ["automation"]
|
||||
}
|
||||
|
||||
target "docker-metadata-action" {}
|
||||
|
||||
# TODO: Auto include this from the workflow
|
||||
target "common" {
|
||||
cache-from = [
|
||||
{
|
||||
type = "gha"
|
||||
}
|
||||
]
|
||||
cache-to = [
|
||||
{
|
||||
type = "gha"
|
||||
mode = "max"
|
||||
}
|
||||
]
|
||||
args = {
|
||||
RELEASE_VERSION = "${RELEASE_VERSION}"
|
||||
}
|
||||
}
|
||||
|
||||
target "automation" {
|
||||
inherits = ["docker-metadata-action", "common"]
|
||||
context = "./"
|
||||
dockerfile = "Dockerfile"
|
||||
tags = [for tag in target.docker-metadata-action.tags : "${TAG_BASE}:${tag}"]
|
||||
}
|
||||
Reference in New Issue
Block a user