Skip to content

Commit

Permalink
Standardize schema file copy
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyylim committed Mar 11, 2023
1 parent da86605 commit 2b80ed7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ jobs:
name: xp-ui-dist
path: ui/build

- name: Download Management Service binary
uses: actions/download-artifact@v2
with:
name: management-service-binary
path: management-service/bin/

- name: Build Docker image
id: build-image
run: |
Expand Down Expand Up @@ -114,6 +120,12 @@ jobs:
with:
fetch-depth: 0

- name: Download Treatment Service binary
uses: actions/download-artifact@v2
with:
name: treatment-service-binary
path: treatment-service/bin/

- name: Build Docker image
id: build-image
working-directory: treatment-service
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ RUN addgroup -S ${XP_USER_GROUP} \
&& mkdir /app \
&& chown -R ${XP_USER}:${XP_USER_GROUP} /app

COPY --from=api-builder --chown=${XP_USER}:${XP_USER_GROUP} /app/api/experiments.yaml /app/
COPY --from=api-builder --chown=${XP_USER}:${XP_USER_GROUP} /app/api/schema.yaml /app/
COPY --chown=${XP_USER}:${XP_USER_GROUP} management-service/bin/experiments.yaml /app/
COPY --chown=${XP_USER}:${XP_USER_GROUP} management-service/bin/schema.yaml /app/
COPY --from=api-builder --chown=${XP_USER}:${XP_USER_GROUP} /app/management-service/bin/* /app/
COPY --from=api-builder --chown=${XP_USER}:${XP_USER_GROUP} /app/management-service/database /app/database/

Expand Down
2 changes: 0 additions & 2 deletions treatment-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ FROM alpine:latest
RUN apk update && apk add git make bash unzip libtool ca-certificates dumb-init tzdata
RUN mkdir -p /opt/xp_treatment

COPY --from=api-builder --chown=${XP_USER}:${XP_USER_GROUP} /app/api/treatment.yaml /opt/xp_treatment/
COPY --from=api-builder --chown=${XP_USER}:${XP_USER_GROUP} /app/api/schema.yaml /opt/xp_treatment/
COPY --from=api-builder /app/bin/* /opt/xp_treatment/

WORKDIR /opt/xp_treatment
Expand Down

0 comments on commit 2b80ed7

Please sign in to comment.