Skip to content

Commit 5331fd2

Browse files
committed
ci(docker): build local code checkout, add caching to dev build
1 parent 4dd30fe commit 5331fd2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/docker.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
uses: docker/build-push-action@v2
4141
if: "contains(github.ref, 'release/v')"
4242
with:
43+
context: .
44+
file: ./Dockerfile
4345
push: true
4446
platforms: linux/amd64,linux/arm64
4547
tags: ${{ steps.docker_meta.outputs.tags }}
@@ -49,7 +51,11 @@ jobs:
4951
uses: docker/build-push-action@v2
5052
if: "contains(github.ref, 'develop')"
5153
with:
54+
context: .
55+
file: ./Dockerfile
5256
push: ${{ github.event_name != 'pull_request' }}
5357
platforms: linux/amd64,linux/arm64
5458
tags: ${{ steps.docker_meta.outputs.tags }}
5559
labels: ${{ steps.docker_meta.outputs.labels }}
60+
cache-from: type=gha
61+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)