Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/v5...v6) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
name: 'Docker Test'
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- .github/workflows/docker-test.yml
|
|
- Dockerfile
|
|
- scripts/**
|
|
- tests/**
|
|
|
|
jobs:
|
|
test:
|
|
name: Docker Test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v4
|
|
-
|
|
name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
-
|
|
name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: '.'
|
|
file: './Dockerfile'
|
|
load: true
|
|
tags: ttionya/vaultwarden-backup:dev
|
|
-
|
|
name: Build test Docker image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: '.'
|
|
file: './tests/Dockerfile'
|
|
build-contexts: ttionya/vaultwarden-backup:dev=docker-image://ttionya/vaultwarden-backup:dev
|
|
tags: ttionya/vaultwarden-backup:test
|
|
load: true
|
|
-
|
|
name: Test
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y p7zip-full
|
|
bash tests/test.sh
|