Skip to content

Commit

Permalink
fix build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Pistonight committed Oct 3, 2023
1 parent c6c3db7 commit 502edd5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
jame: Build
name: Build
on:
push:
branches:
Expand Down Expand Up @@ -86,6 +86,6 @@ jobs:
- uses: actions/upload-artifact@v3
with:
path: target/x86_64-unknown-linux-musl/release/celerserver
name: celerserver
name: bin
retention-days: 3

6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
version:
description: "Version tag of the image (e.g. 0.2.0-beta)"
required: true
pull_request:
branches:
- main
# pull_request:
# branches:
# - main

jobs:
build-docker:
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ ENV CELERSERVER_LOG=INFO \
CELERSERVER_APP_DIR=/opt/app/app \
CELERSERVER_GZIP=true

CMD ["./celerserver"]
CMD ["./bin/celerserver"]
3 changes: 2 additions & 1 deletion docker/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ tasks:
- rm -rf ./dist/*
- mkdir -p dist/docs
- mkdir -p dist/app
- mkdir -p dist/bin
- cp -r ../docs/src/.vitepress/dist/* dist/docs
- cp -r ../web-client/dist/* dist/app
- cp ../target/x86_64-unknown-linux-musl/release/celerserver dist
- cp ../target/x86_64-unknown-linux-musl/release/celerserver dist/bin

build:
desc: Build docker container locally (requires building assets first)
Expand Down

0 comments on commit 502edd5

Please sign in to comment.