diff --git a/.github/workflows/production_ci.yaml b/.github/workflows/production_ci.yaml index 08ae58db8..fbe0abcb6 100644 --- a/.github/workflows/production_ci.yaml +++ b/.github/workflows/production_ci.yaml @@ -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 diff --git a/.github/workflows/staging_ci.yaml b/.github/workflows/staging_ci.yaml index 9cd95901c..ad2d9164b 100644 --- a/.github/workflows/staging_ci.yaml +++ b/.github/workflows/staging_ci.yaml @@ -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 diff --git a/alert_archiving_step/Dockerfile b/alert_archiving_step/Dockerfile index 75c1f46da..7d059de53 100644 --- a/alert_archiving_step/Dockerfile +++ b/alert_archiving_step/Dockerfile @@ -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"]