Skip to content

Commit

Permalink
run lint befroe deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashleyhx committed Dec 11, 2023
1 parent c6d5b29 commit 6fcdcaa
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 28 deletions.
56 changes: 29 additions & 27 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: Build-And-Deploy

on:
workflow_run:
workflows: [ "Lint"]
types:
- completed
workflows: [ "Lint"]
types:
- completed
branches:
- master

jobs:
docker:
Expand All @@ -22,27 +24,27 @@ jobs:
run: npm run generate-grammar-prod
- name: Prebuild - build app
run: npm run build
# - name: Prebuild - fetch datasets
# run: npm run fetch-datasets
# - name: Prebuild - cleanup
# run: rm -rf node_modules
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Build and push
# uses: docker/build-push-action@v5
# with:
# context: .
# platforms: linux/amd64,linux/arm64
# push: true
# tags: kuzudb/explorer:latest
# build-args: |
# SKIP_GRAMMAR=true
# SKIP_BUILD_APP=true
# SKIP_DATASETS=true
- name: Prebuild - fetch datasets
run: npm run fetch-datasets
- name: Prebuild - cleanup
run: rm -rf node_modules
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: kuzudb/explorer:latest
build-args: |
SKIP_GRAMMAR=true
SKIP_BUILD_APP=true
SKIP_DATASETS=true
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ jobs:
uses: EndBug/add-and-commit@v9
with:
author_name: Lint Bot
message: 'Run linters'
message: 'Run linters'

0 comments on commit 6fcdcaa

Please sign in to comment.