Skip to content

Commit

Permalink
feat: add immutable tags
Browse files Browse the repository at this point in the history
As YYYYMMDDhhmm, 22.04-202307272207.
  • Loading branch information
virtualroot committed Jul 27, 2023
1 parent 1cad42f commit f166e57
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ group "default" {

target "alpine" {
dockerfile = "Dockerfile.alpine"
tags = ["virtualroot/hardened-alpine:3.18"]
tags = ["virtualroot/hardened-alpine:3.18", "virtualroot/hardened-alpine:3.18-${formatdate("YYYYMMDD", timestamp())}", "virtualroot/hardened-alpine:3.18-${formatdate("YYYYMMDDhhmm", timestamp())}"]
args = {
image = "alpine:3.18"
username = "${USERNAME}"
Expand All @@ -17,16 +17,16 @@ target "alpine" {

target "debian" {
dockerfile = "Dockerfile.debian"
tags = ["virtualroot/hardened-debian:bookworm"]
tags = ["virtualroot/hardened-debian:12", "virtualroot/hardened-debian:12-${formatdate("YYYYMMDD", timestamp())}", "virtualroot/hardened-debian:12-${formatdate("YYYYMMDDhhmm", timestamp())}"]
args = {
image = "debian:bookworm-slim"
image = "debian:12-slim"
username = "${USERNAME}"
}
}

target "ubuntu" {
dockerfile = "Dockerfile.ubuntu"
tags = ["virtualroot/hardened-ubuntu:22.04"]
tags = ["virtualroot/hardened-ubuntu:22.04", "virtualroot/hardened-ubuntu:22.04-${formatdate("YYYYMMDD", timestamp())}", "virtualroot/hardened-ubuntu:22.04-${formatdate("YYYYMMDDhhmm", timestamp())}"]
args = {
image = "ubuntu:22.04"
username = "${USERNAME}"
Expand Down

0 comments on commit f166e57

Please sign in to comment.