fix: build the app before packagin into a Docker image

This commit is contained in:
Karol Sójko 2022-06-21 16:04:46 +02:00
parent e90caeac32
commit e8d13627f8
No known key found for this signature in database
GPG key ID: A50543BF560BDEB0
2 changed files with 5 additions and 1 deletions

View file

@ -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:

View file

@ -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" ]