Skip to content

Commit

Permalink
Add docker-metadata-action
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Nov 18, 2023
1 parent f5e388d commit f8a8fc5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/hadolint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Docker meta
id: meta
uses: docker/metadata-action@v5

- name: Install QEMU static binaries
uses: docker/setup-qemu-action@v3

Expand Down
5 changes: 4 additions & 1 deletion hadolint/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ variable "LOCAL_PLATFORM" {
default = regex_replace("${BAKE_LOCAL_PLATFORM}", "^(darwin)", "linux")
}

# Special target: https://github.com/docker/metadata-action#bake-definition
target "docker-metadata-action" { }

target "_common" {
dockerfile = "Containerfile"
tags = [
Expand All @@ -36,7 +39,7 @@ target "local" {
}

group "default" {
targets = ["lint", "release"]
targets = ["docker-metadata-action", "lint", "release"]
}

target "release" {
Expand Down

0 comments on commit f8a8fc5

Please sign in to comment.