mirror of
https://github.com/pterodactyl/panel.git
synced 2025-01-31 19:01:35 +01:00
ci(docker): build local code checkout, add caching to dev build
This commit is contained in:
parent
4dd30fe2f0
commit
5331fd2cdb
6
.github/workflows/docker.yml
vendored
6
.github/workflows/docker.yml
vendored
@ -40,6 +40,8 @@ jobs:
|
||||
uses: docker/build-push-action@v2
|
||||
if: "contains(github.ref, 'release/v')"
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: ${{ steps.docker_meta.outputs.tags }}
|
||||
@ -49,7 +51,11 @@ jobs:
|
||||
uses: docker/build-push-action@v2
|
||||
if: "contains(github.ref, 'develop')"
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: ${{ steps.docker_meta.outputs.tags }}
|
||||
labels: ${{ steps.docker_meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
Loading…
x
Reference in New Issue
Block a user