Skip to content

Commit

Permalink
build: add version pinning
Browse files Browse the repository at this point in the history
  • Loading branch information
GalvinGao committed Aug 26, 2022
1 parent 877e5e2 commit 33b3f4a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
with:
version: ${{ steps.git-meta.outputs.version }}
repository: 'penguin-statistics/widget-backend'
build-args: |
BUILD_DOCS_COMMIT=b7f45a0a0d286ac6b00a3684190319e42acaacda
BUILD_WEB_COMMIT=e3581b4f476062fcfa99c599ca9458a63b2639a1
- name: "Release: Call Dispatcher"
id: release-dispatcher
Expand Down
12 changes: 10 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,23 @@ RUN apk update && apk add git make gcc g++ yarn

FROM webbuilderbase AS docsbuilder

RUN git clone https://github.com/penguin-statistics/widget-docs /build/widget-docs
ARG BUILD_DOCS_COMMIT

RUN git clone https://github.com/penguin-statistics/widget-docs /build/widget-docs && \
cd /build/widget-docs && \
git checkout $BUILD_DOCS_COMMIT

WORKDIR /build/widget-docs

RUN yarn install && yarn build

FROM webbuilderbase AS frontendbuilder

RUN git clone https://github.com/penguin-statistics/widget-frontend /build/widget-frontend
ARG BUILD_WEB_COMMIT

RUN git clone https://github.com/penguin-statistics/widget-frontend /build/widget-frontend && \
cd /build/widget-frontend && \
git checkout $BUILD_WEB_COMMIT

WORKDIR /build/widget-frontend

Expand Down

0 comments on commit 33b3f4a

Please sign in to comment.