chore: building images using Docker bake
This commit is contained in:
5 files changed
+124
-48
No files matched your search
@@ -37,22 +37,18 @@ jobs:
|
||||
driver-opts: network=host
|
||||
-
|
||||
name: Build base image
|
||||
uses: docker/build-push-action@v6
|
||||
uses: docker/bake-action@v5
|
||||
with:
|
||||
context: '.'
|
||||
file: './Dockerfile'
|
||||
platforms: 'linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7'
|
||||
files: ./docker-bake.hcl
|
||||
targets: image-test-base
|
||||
push: true
|
||||
tags: localhost:5000/base:dev
|
||||
-
|
||||
name: Build test image
|
||||
uses: docker/build-push-action@v6
|
||||
uses: docker/bake-action@v5
|
||||
with:
|
||||
context: '.'
|
||||
file: './tests/Dockerfile'
|
||||
build-contexts: base=docker-image://localhost:5000/base:dev
|
||||
files: ./docker-bake.hcl
|
||||
targets: image-test
|
||||
load: true
|
||||
tags: ttionya/vaultwarden-backup:test
|
||||
-
|
||||
name: Test
|
||||
run: |
|
||||
|
||||
Reference in new issue
Block a user