File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : build-docker
2+ on :
3+ push :
4+ branches :
5+ - ' main'
6+
7+ jobs :
8+ docker :
9+ runs-on : ubuntu-latest
10+ steps :
11+ -
12+ name : Useful variables
13+ id : setvars
14+ # ghcr.io namespaces must be lower case, but there's no native way
15+ # in the GitHub Actions expression language to convert string case,
16+ # so we have to do it ourselves in a script.
17+ run : echo "repoowner=${{ github.repository_owner }}" | tr 'A-Z' 'a-z' >> "$GITHUB_OUTPUT"
18+
19+ -
20+ name : Set up Docker Buildx
21+ uses : docker/setup-buildx-action@v3
22+
23+ -
24+ name : Docker meta
25+ id : meta
26+ uses : docker/metadata-action@v5
27+
28+ -
29+ name : Build
30+ uses : docker/bake-action@v6
31+ env :
32+ PROD : " true"
33+ DBBR_REGISTRY : ghcr.io/${{ steps.setvars.outputs.repoowner }}/
34+ with :
35+ files : |
36+ ./docker-bake.hcl
37+ cwd://${{ steps.meta.outputs.bake-file-labels }}
38+ push : true
You can’t perform that action at this time.
0 commit comments