Skip to content

Commit

Permalink
build: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GalvinGao committed Apr 29, 2022
1 parent c12a381 commit 9199384
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,15 @@ jobs:
if [[ ${GITHUB_REF} == *"alpha"* ]] || [[ ${GITHUB_REF} == *"beta"* ]]; then
echo "PRE_RELEASE=true" >> $GITHUB_ENV
fi
- name: Build Docker Image
uses: docker/build-push-action@v2
- name: Build and Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@3.04
with:
push: true
tags: |
ghcr.io/penguin-statistics/frontend-v2:latest,
ghcr.io/penguin-statistics/frontend-v2:${{ env.GIT_TAG }}
name: penguin-statistics/frontend-v2
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
tags: "latest,${{ env.GIT_TAG }}"

- name: Create GitHub Release
uses: marvinpinto/action-automatic-releases@v1.2.1
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ COPY yarn.lock .
# Setup yarn
RUN yarn install

COPY . .

# Build the app
RUN yarn build:web

Expand Down

0 comments on commit 9199384

Please sign in to comment.