automation: Stop writing haddocks to both buckets

The experiment was a success. Time for a full switch to the new bucket.
This commit is contained in:
Bryan Richter 2024-02-15 12:09:15 +02:00
parent 5a03ed826f
commit cf82b84caf
No known key found for this signature in database
GPG Key ID: B202264020068BFB

View File

@ -157,15 +157,6 @@ docker run $ARGS_UPLOAD $IMAGE /bin/bash -c "exec curator check-target-available
# * Upload the new snapshot .yaml file to the appropriate Github repo, also upload its constraints
docker run $ARGS_UPLOAD $IMAGE /bin/bash -c "curator upload-docs --target $TARGET ${DOCS_BUCKET:+--bucket $DOCS_BUCKET} && curator upload-github --target $TARGET"
# For testing, temporarily push to the new HF bucket directly.
# Use a subshell to temporarily get new creds and allow failure.
(
source work/aws-hf.sh
# Regenerate docs-specific upload args
ARGS_UPLOAD_DOCS="$ARGS_COMMON -u $USERID -e HOME=$C_HOME -v $DOT_STACKAGE_DIR:$C_HOME/.stackage -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY ${AWS_ENDPOINT_URL:+-e AWS_ENDPOINT_URL=$AWS_ENDPOINT_URL} -v $DOT_STACKAGE_DIR:/dot-stackage"
docker run $ARGS_UPLOAD_DOCS "$IMAGE" /bin/bash -c "curator upload-docs --target $TARGET ${DOCS_BUCKET:+--bucket $DOCS_BUCKET}"
)
# fixed in https://github.com/commercialhaskell/curator/pull/24
docker run $ARGS_UPLOAD $IMAGE /bin/bash -c "exec curator hackage-distro --target $TARGET"