fix: build the app before packagin into a Docker image
This commit is contained in:
parent
e90caeac32
commit
e8d13627f8
2 changed files with 5 additions and 1 deletions
4
.github/workflows/scheduler.release.dev.yml
vendored
4
.github/workflows/scheduler.release.dev.yml
vendored
|
@ -30,6 +30,8 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build locally
|
||||
run: yarn build:scheduler
|
||||
- name: Configure AWS credentials
|
||||
uses: aws-actions/configure-aws-credentials@v1
|
||||
with:
|
||||
|
@ -58,6 +60,8 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build locally
|
||||
run: yarn build:scheduler
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
|
|
|
@ -20,6 +20,6 @@ COPY --from=builder /workspace ./
|
|||
# docker-build plugin runs `yarn pack` in all workspace dependencies and copies them to `packs` folder.
|
||||
COPY packs ./
|
||||
|
||||
ENTRYPOINT [ "packages/scheduler/docker/entrypoint.sh" ]
|
||||
ENTRYPOINT [ "/workspace/packages/scheduler/docker/entrypoint.sh" ]
|
||||
|
||||
CMD [ "start-worker" ]
|
||||
|
|
Loading…
Reference in a new issue