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 cc0107b commit 2c7e72b
Showing 1 changed file with 25 additions and 37 deletions.
62 changes: 25 additions & 37 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,40 +19,28 @@ jobs:
- name: LS
run: ls
working-directory: ${{ env.WORKING_DIRECTORY }}
# - name: Setup Node
# uses: actions/setup-node@v4
# with:
# node-version: "20"
# cache-dependency-path: |
# ./site/
# cache:
# - name: Restore cache
# uses: actions/cache@v4
# with:
# path: |
# .node_modules
# .nuxt
# key: ${{ runner.os }}-nuxt-build-${{ hashFiles('.output') }}
# restore-keys: |
# ${{ runner.os }}-nuxt-build-
# - name: NPM Install
# run: npm install
# - name: NPM Run Build
# run: npm run build
# - name: 'Set up Docker Buildx'
# uses: docker/setup-buildx-action@v2
# - name: 'Login to GitHub Container Registry'
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: 'Build and push docker image'
# uses: docker/build-push-action@v5
# with:
# platforms: |
# linux/amd64
# linux/arm64
# push: true
# tags: |
# ${{ env.IMAGE_NAME }}:latest
- 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
- name: 'Set up Docker Buildx'
uses: docker/setup-buildx-action@v2
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: 'Build and push docker image'
uses: docker/build-push-action@v5
with:
platforms: |
linux/amd64
linux/arm64
push: true
tags: |
${{ env.IMAGE_NAME }}:latest

0 comments on commit 2c7e72b

Please sign in to comment.