Skip to content

Commit

Permalink
trying to fix docker build, so it includes git sha info.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed May 27, 2022
1 parent d93d24b commit c539af1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ ENV NPM_CONFIG_LOGLEVEL=warn NG_CLI_ANALYTICS=false
WORKDIR /opt/scrutiny/src
COPY webapp/frontend /opt/scrutiny/src

RUN npm install -g @angular/cli@9.1.4 && \
RUN apt-get update && apt-get install -y git && \
npm install -g @angular/cli@9.1.4 && \
mkdir -p /scrutiny/dist && \
npm install && \
npm run build:prod -- --output-path=/opt/scrutiny/dist
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile.web
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ ENV NPM_CONFIG_LOGLEVEL=warn NG_CLI_ANALYTICS=false
WORKDIR /opt/scrutiny/src
COPY webapp/frontend /opt/scrutiny/src

RUN npm install -g @angular/cli@9.1.4 && \
RUN apt-get update && apt-get install -y git && \
npm install -g @angular/cli@9.1.4 && \
mkdir -p /opt/scrutiny/dist && \
npm install && \
npm run build:prod -- --output-path=/opt/scrutiny/dist
Expand Down

0 comments on commit c539af1

Please sign in to comment.