Skip to content

Commit

Permalink
feat: Add args for CMake version
Browse files Browse the repository at this point in the history
  • Loading branch information
cpswan committed Aug 6, 2024
1 parent e48dc40 commit 9f69f62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/buildimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: BuildImage

on:
workflow_dispatch:
inputs:
cmake-version:
description: 'CMake version'
required: true
default: '3.30.2'

permissions: # added using https://github.com/step-security/secure-workflows
contents: read
Expand All @@ -27,6 +32,7 @@ jobs:
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
with:
file: ./Dockerfile
build-args: CMAKE_VERSION=${{ github.event.inputs.cmake-version }}
push: true
provenance: false
tags: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM debian:oldoldstable-20240612-slim@sha256:297126bdb5f6b3dd2ce43c87fcd67678f3b8b2ecbed94fb9f18bbccca522bcb1 AS build
COPY clang-18.apt /tmp
ENV CMAKE_VERSION=3.30.2
ARG CMAKE_VERSION=3.30.2
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
Expand Down

0 comments on commit 9f69f62

Please sign in to comment.