Skip to content

Commit

Permalink
fix: adds --if-exists tosave artifacts (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
kukkok3 authored Feb 28, 2024
1 parent b932923 commit 167d203
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions catalyst-gateway/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ build:
RUN /scripts/std_build.py --cov_report="coverage-report.info" \
--bins="cat-gateway/cat-gateway"
FINALLY
SAVE ARTIFACT target/nextest/ci/junit.xml AS LOCAL cat-gateway.junit-report.xml
SAVE ARTIFACT coverage-report.info AS LOCAL cat-gateway.coverage-report.info
SAVE ARTIFACT --if-exists target/nextest/ci/junit.xml AS LOCAL cat-gateway.junit-report.xml
SAVE ARTIFACT --if-exists coverage-report.info AS LOCAL cat-gateway.coverage-report.info
END
RUN ./target/$TARGETARCH/release/cat-gateway docs ./target/$TARGETARCH/doc/cat-gateway-api.json
SAVE ARTIFACT target/$TARGETARCH/doc doc
Expand All @@ -56,7 +56,7 @@ package-cat-gateway:
COPY +build/cat-gateway .
ENTRYPOINT ./cat-gateway run --address $address --database-url $db_url --log-level $log_level
SAVE IMAGE cat-gateway:$tag

# Publish packages if all integration tests have passed. (Failure to pass tests will prevent packages being published.)
# publish:
# FROM scratch
Expand Down

0 comments on commit 167d203

Please sign in to comment.