mirror of
https://github.com/open62541/open62541.git
synced 2026-10-17 04:42:09 +08:00
31dc7517d2
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 7. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/v5...v7) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
37 lines
986 B
YAML
37 lines
986 B
YAML
name: Build Docker Image
|
|
|
|
on:
|
|
# Allows triggering the build manually from the Actions UI
|
|
workflow_dispatch:
|
|
|
|
# Automatically builds only when Docker or GDS files are modified,
|
|
# keeping the build time of other standard PRs completely unaffected.
|
|
pull_request:
|
|
paths:
|
|
- 'tools/docker/**'
|
|
- 'examples/ci_server.c'
|
|
- 'tools/certs/**'
|
|
|
|
jobs:
|
|
build-docker:
|
|
name: Build open62541 Docker Image
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v7
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v4
|
|
|
|
- name: Build Docker Image
|
|
uses: docker/build-push-action@v7
|
|
with:
|
|
context: .
|
|
file: tools/docker/Dockerfile
|
|
tags: open62541/open62541:latest
|
|
push: false # Only verify the build, do not push to registry
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|