Skip to content

Commit

Permalink
ci: site
Browse files Browse the repository at this point in the history
  • Loading branch information
lkzc19 committed Jul 25, 2024
1 parent 2c7e72b commit 8944c25
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- 'site/**'

env:
WORKING_DIRECTORY: 'site'
WORKSPACE: 'site'
IMAGE_NAME: 'drinkice-site'

jobs:
Expand All @@ -16,17 +16,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: LS
run: ls
working-directory: ${{ env.WORKING_DIRECTORY }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
- name: NPM Install
run: npm install
- name: NPM Run Build
run: npm run build
run: |
cd ${{ env.WORKSPACE }}
npm install
npm run build
- name: 'Set up Docker Buildx'
uses: docker/setup-buildx-action@v2
- name: 'Login to GitHub Container Registry'
Expand All @@ -38,6 +36,7 @@ jobs:
- name: 'Build and push docker image'
uses: docker/build-push-action@v5
with:
context: ${{ env.WORKSPACE }}
platforms: |
linux/amd64
linux/arm64
Expand Down

0 comments on commit 8944c25

Please sign in to comment.