Skip to content

Commit

Permalink
DO NOT MERGE: Force deploy with dry run flag
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Harding <[email protected]>
  • Loading branch information
klutchell committed Nov 1, 2024
1 parent 5e58e1d commit aa8c9d7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/yocto-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ jobs:
# If we deploy the hostapp, also deploy the s3 artifacts
# Force finlize will finalize no matter what - so we want to make sure there is something to finlize - so it will always trigger this if true
- name: Evaluate whether to deploy hostapp
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || inputs.force-finalize
# if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || inputs.force-finalize
id: should-deploy
run: |
echo "deploy=true" >>"${GITHUB_OUTPUT}"
Expand Down Expand Up @@ -643,11 +643,11 @@ jobs:
echo "${VERSION}" > "${SOURCE_DIR}/${SLUG}/latest"
touch "${SOURCE_DIR}/${SLUG}/${VERSION}/IGNORE"
aws s3 rm --recursive "${S3_URL}/${SLUG}/${VERSION}"
aws s3 cp --sse="${S3_SSE}" --acl="${S3_ACL}" "${SOURCE_DIR}/${SLUG}/${VERSION}/IGNORE" "${S3_URL}/${SLUG}/${VERSION}/"
aws s3 sync --sse="${S3_SSE}" --acl="${S3_ACL}" "${SOURCE_DIR}/${SLUG}/${VERSION}/" "${S3_URL}/${SLUG}/${VERSION}/"
aws s3 cp --sse="${S3_SSE}" --acl=public-read "${SOURCE_DIR}/${SLUG}/latest" "${S3_URL}/${SLUG}/"
aws s3 rm "${S3_URL}/${SLUG}/${VERSION}/IGNORE"
aws s3 rm --dryrun --recursive "${S3_URL}/${SLUG}/${VERSION}"
aws s3 cp --dryrun --sse="${S3_SSE}" --acl="${S3_ACL}" "${SOURCE_DIR}/${SLUG}/${VERSION}/IGNORE" "${S3_URL}/${SLUG}/${VERSION}/"
aws s3 sync --dryrun --sse="${S3_SSE}" --acl="${S3_ACL}" "${SOURCE_DIR}/${SLUG}/${VERSION}/" "${S3_URL}/${SLUG}/${VERSION}/"
aws s3 cp --dryrun --sse="${S3_SSE}" --acl=public-read "${SOURCE_DIR}/${SLUG}/latest" "${S3_URL}/${SLUG}/"
aws s3 rm --dryrun "${S3_URL}/${SLUG}/${VERSION}/IGNORE"
##############################
# hostapp Deploy
Expand Down

0 comments on commit aa8c9d7

Please sign in to comment.