Skip to content

Commit 3813b28

Browse files
Michel MLMichel ML
Michel ML
authored and
Michel ML
committed
add gh workflow for docker build [skip ci]
1 parent 70ae2f2 commit 3813b28

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

.github/workflows/docker-build.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Docker Build
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
semver_version:
7+
description: 'Semantic version (e.g. 1.0.0)'
8+
required: true
9+
type: string
10+
rdkit_dash_version:
11+
description: 'RDKit Dash version'
12+
required: true
13+
type: string
14+
beta:
15+
description: 'Beta flag'
16+
required: true
17+
type: string
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
26+
- name: Build with NPM
27+
run: |
28+
RDKIT_DASH_VERSION=${{ inputs.rdkit_dash_version }} SEMVER_VERSION=${{ inputs.semver_version }} BETA=${{ inputs.beta }} NPM_TOKEN=${{ secrets.NPM_TOKEN }} npm run build

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ RUN /opt/emsdk/node/*/bin/node tests.js
116116
# https://docs.docker.com/engine/reference/commandline/build/#custom-build-outputs
117117
FROM scratch as export-stage
118118
COPY --from=build-stage /src/rdkit/Code/MinimalLib/demo /
119-
COPY --from=build-stage /src/rdkit/Code/MinimalLib/docs /
119+
COPY --from=build-stage /src/rdkit/Code/MinimalLib/docs /

scripts/build_rdkitjs.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/bash
2+
13
set -e
24

35
# Set branch to release
@@ -28,7 +30,7 @@ rm -rf $LEGACY_MINIMALLIB_OUTPUT_PATH
2830
mkdir -p $LEGACY_MINIMALLIB_OUTPUT_PATH
2931

3032
# Build distribution files
31-
DOCKER_BUILDKIT=1 docker build --no-cache --platform=linux/amd64 -f Dockerfile --build-arg RDKIT_BRANCH=$RDKIT_BRANCH -o $MINIMALLIB_OUTPUT_PATH .
33+
DOCKER_BUILDKIT=1 docker build --platform=linux/amd64 -f Dockerfile --build-arg RDKIT_BRANCH=$RDKIT_BRANCH -o $MINIMALLIB_OUTPUT_PATH .
3234

3335
# Make dist files executable
3436
chmod a+rwx $MINIMALLIB_OUTPUT_PATH/RDKit_minimal.js

0 commit comments

Comments
 (0)