Skip to content

Commit

Permalink
build: fix github sha
Browse files Browse the repository at this point in the history
  • Loading branch information
GalvinGao committed Aug 10, 2022
1 parent 947c949 commit 91852d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:
tags: |
ghcr.io/penguin-statistics/frontend-v2:latest,
ghcr.io/penguin-statistics/frontend-v2:${{ env.GIT_TAG }}
build-args: |
TRUNCATED_GITHUB_SHA=${{ env.TRUNCATED_GITHUB_SHA }}
- name: Create GitHub Release
uses: marvinpinto/action-automatic-releases@v1.2.1
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM node:lts AS builder
WORKDIR /app

ARG TRUNCATED_GITHUB_SHA
ENV TRUNCATED_GITHUB_SHA $TRUNCATED_GITHUB_SHA

COPY package.json .
COPY yarn.lock .

Expand Down

0 comments on commit 91852d6

Please sign in to comment.