Skip to content

Commit

Permalink
build: fix alert-archiving-step
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Rodriguez authored and Diego Rodriguez committed Nov 2, 2023
1 parent 12829f0 commit 7dad549
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/production_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ jobs:
lc_classification_step lightcurve-step magstats_step metadata_step prv_candidates_step \
s3_step scribe sorting_hat_step watchlist_step xmatch_step --version=${{ inputs.tag }}
build-alert-archiving-dagger:
needs: update_versions
uses: ./.github/workflows/template_build_with_dagger.yaml
with:
stage: production
extra-args: alert_archiving_step
secrets:
GH_TOKEN: ${{ secrets.ADMIN_TOKEN }}

build-correction-dagger:
needs: update_versions
uses: ./.github/workflows/template_build_with_dagger.yaml
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/staging_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ jobs:
lc_classification_step lightcurve-step magstats_step metadata_step prv_candidates_step \
s3_step scribe sorting_hat_step watchlist_step xmatch_step
build-alert-archiving-dagger:
needs: update_versions
uses: ./.github/workflows/template_build_with_dagger.yaml
with:
stage: production
extra-args: alert_archiving_step
secrets:
GH_TOKEN: ${{ secrets.ADMIN_TOKEN }}

build-correction-dagger:
needs: update-packages-dagger
uses: ./.github/workflows/template_build_with_dagger.yaml
Expand Down
13 changes: 8 additions & 5 deletions alert_archiving_step/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app/
RUN pip install poetry
COPY ./poetry.lock ./pyproject.toml /app/
COPY ./alert_archiving_step/poetry.lock ./alert_archiving_step/pyproject.toml /app/
RUN poetry config virtualenvs.create false
RUN poetry install --no-interaction --without=dev --no-root

FROM builder
COPY ./alert_archiving_step /app/alert_archiving_step
COPY ./scripts /app/scripts
COPY ./README.md /app/
FROM python:3.9-slim
RUN pip install poetry
WORKDIR /app
COPY --from=builder /app /app
COPY ./alert_archiving_step/README.md /app/
COPY ./alert_archiving_step/scripts /app/scripts
COPY ./alert_archiving_step/alert_archiving_step /app/alert_archiving_step
RUN poetry install --no-interaction --only-root
CMD ["poetry", "run", "run-step"]

0 comments on commit 7dad549

Please sign in to comment.