Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,11 @@ jobs:
- name: Upload Certbot Lambda Assets to S3
working-directory: certbot
run: |
aws s3 cp . s3://jenkins-artifacts.us-west-2.dovetailnow.com/jobs/certbot-lambda/$NEXT_VERSION_NO_PREFIX --recursive --exclude "*" --include "*.zip"
set -euo pipefail
DEST="s3://jenkins-artifacts.us-west-2.dovetailnow.com/jobs/certbot-lambda/$NEXT_VERSION_NO_PREFIX"
# --no-overwrite skips an existing key with no error, so fail here first.
if aws s3 ls "$DEST/" > /dev/null; then
echo "::error::$DEST/ already exists"
exit 1
fi
aws s3 cp . "$DEST" --recursive --exclude "*" --include "*.zip" --no-overwrite
Loading