Skip to content

Commit

Permalink
ci: use git context
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Dec 19, 2023
1 parent ce7b7f9 commit 2a437f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ jobs:
password: ${{ secrets.DOCKERPUBLICBOT_WRITE_PAT }}
-
name: Build
uses: docker/bake-action@v4
#uses: docker/bake-action@v4
uses: crazy-max/docker-bake-action@git-context
with:
source: "{{defaultContext}}"
files: |
./docker-bake.hcl
${{ steps.meta.outputs.bake-file }}
cwd://${{ steps.meta.outputs.bake-file }}
targets: image-all
push: ${{ github.event_name != 'pull_request' }}
set: |
Expand Down
1 change: 1 addition & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ variable "IMAGE_LOCAL" {

target "_common" {
args = {
BUILDKIT_CONTEXT_KEEP_GIT_DIR = 1
GO_VERSION = GO_VERSION
GIT_REF = GITHUB_REF
}
Expand Down

0 comments on commit 2a437f6

Please sign in to comment.