Skip to content

Commit

Permalink
ci: disable frontend build temporarily (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
vnghia authored Nov 29, 2024
1 parent 8b6dcd9 commit fcf0b35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 45 deletions.
46 changes: 2 additions & 44 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,47 +28,6 @@ env:
MINIO_ROOT_PASSWORD: minioadmin

jobs:
build-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Extract rust toolchain
id: toolchain
run: |
echo "channel=$(grep channel rust-toolchain.toml | awk -F' = ' '{printf $2}' | tr -d '\"')" >> "$GITHUB_OUTPUT"
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ steps.toolchain.outputs.channel }}

- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: ${{ github.workspace }}/frontend/package-lock.json
- name: Build tailwindcss
working-directory: ${{ github.workspace }}/frontend
run: |
npm ci
npm run build
- name: Install dioxus-cli
uses: taiki-e/cache-cargo-install-action@v2
with:
tool: dioxus-cli
locked: false
- name: Build frontend
env:
RUST_LOG: info
run: |
dx build --verbose --profile ${{ (github.event_name == 'release' || github.event_name == 'workflow_dispatch') && 'release' || 'dev' }}
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: frontend
path: ${{ github.workspace }}/frontend/dist/
retention-days: 1

build-linux:
strategy:
fail-fast: false
Expand Down Expand Up @@ -200,7 +159,7 @@ jobs:

build-docker:
runs-on: ubuntu-latest
needs: [build-frontend, build-linux]
needs: [build-linux]
if: ${{ vars.BUILD_DOCKER != '' }}

steps:
Expand Down Expand Up @@ -570,8 +529,7 @@ jobs:

upload-release:
runs-on: ubuntu-latest
needs:
[build-frontend, build-linux, build-freebsd, build-windows, build-macos]
needs: [build-linux, build-freebsd, build-windows, build-macos]
if: ${{ github.event_name == 'release' }}
permissions:
contents: write
Expand Down
1 change: 0 additions & 1 deletion ci/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ RUN update-ca-certificates

FROM ${BASE_IMAGE}

Check warning on line 14 in ci/docker/Dockerfile

View workflow job for this annotation

GitHub Actions / build-docker

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG ${BASE_IMAGE} results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 14 in ci/docker/Dockerfile

View workflow job for this annotation

GitHub Actions / build-docker

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG ${BASE_IMAGE} results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/
COPY --from=artifact /artifact/nghe /app/nghe
COPY --from=artifact /artifact/frontend/ /app/frontend/
COPY --from=artifact /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENV NGHE_SERVER__HOST="::"
ENV NGHE_SERVER__FRONTEND_DIR="/app/frontend/"
Expand Down

0 comments on commit fcf0b35

Please sign in to comment.