mirror of
https://github.com/edv-pi/pbs-client-docker.git
synced 2025-04-20 05:52:55 +02:00
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>
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
name: Build Docker Image
|
|
|
|
on:
|
|
# run it during pull request
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
# define job to build and publish docker image
|
|
build-docker-image:
|
|
name: Build Docker image only
|
|
# run only when code is compiling and tests are passing
|
|
runs-on: ubuntu-latest
|
|
|
|
# steps to perform in job
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Test CRON validation.
|
|
run: bash docker/src/tests/test-cron-validation.sh
|
|
|
|
- name: Force permissions fix.
|
|
run: sudo apt-get update && sudo apt-get install dos2unix -y && cd docker && bash dos2unix.sh
|
|
|
|
# setup Docker build action
|
|
- name: Set up Docker Buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Build image only
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: ./docker
|
|
push: false
|
|
|
|
- name: Image digest
|
|
run: echo ${{ steps.docker_build.outputs.digest }}
|