Skip to content

Commit

Permalink
Merge pull request #142 from crazy-max/group
Browse files Browse the repository at this point in the history
ci: group job
  • Loading branch information
crazy-max committed Jun 12, 2023
2 parents aeda4d1 + a841142 commit 4cf768c
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,32 @@ jobs:
*.platform=linux/amd64
*.output=type=image,"name=localhost:5000/name/app:v1.0.0,localhost:5000/name/app:latest",push=true
*.tags=
group:
runs-on: ubuntu-latest
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
version: ${{ inputs.buildx-version || env.BUILDX_VERSION }}
driver-opts: |
image=${{ inputs.buildkit-image || env.BUILDKIT_IMAGE }}
network=host
-
name: Build and push
uses: ./
with:
workdir: ./test/group
push: true
set: |
t1.tags=localhost:5000/name/app:t1
t2.tags=localhost:5000/name/app:t2
7 changes: 7 additions & 0 deletions test/group/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# syntax=docker/dockerfile:1

FROM busybox AS t1
RUN echo "Hello t1"

FROM busybox AS t2
RUN echo "Hello t2"
11 changes: 11 additions & 0 deletions test/group/docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
group "default" {
targets = ["t1", "t2"]
}

target "t1" {
target = "t1"
}

target "t2" {
target = "t2"
}

0 comments on commit 4cf768c

Please sign in to comment.