ops: trying to work with s3cmd

This commit is contained in:
Hunter Miller 2023-04-29 21:18:06 -05:00
parent 032a699c73
commit a8dd1c12fe
2 changed files with 7 additions and 6 deletions

View File

@ -30,3 +30,8 @@ runs:
shell: bash shell: bash
run: run:
./.github/helpers/glob.sh "${{ inputs.folder }}" ${{ inputs.docket }} ./.github/helpers/glob.sh "${{ inputs.folder }}" ${{ inputs.docket }}
- name: Upload Glob and Cleanup
run: |
s3cmd put zod/.urb/put/*.glob -P s3://hmillerdev/sphinx/
sleep 5s
rm -rf zod

View File

@ -23,13 +23,9 @@ rsync -avL $1 zod/work/glob
hood "commit %work" hood "commit %work"
dojo "-garden!make-glob %work /glob" dojo "-garden!make-glob %work /glob"
s3cmd put zod/.urb/put/*.glob -P s3://hmillerdev/sphinx/
gsutil cp zod/.urb/put/*.glob gs://bootstrap.urbit.org
hash=$(ls -1 -c zod/.urb/put | head -1 | sed "s/glob-\([a-z0-9\.]*\).glob/\1/") hash=$(ls -1 -c zod/.urb/put | head -1 | sed "s/glob-\([a-z0-9\.]*\).glob/\1/")
sed -i "s/glob\-[a-z0-9\.]*glob' *[a-z0-9\.]*\]/glob-$hash.glob' $hash]/g" $2 sed -i "s/glob\-[a-z0-9\.]*glob' *[a-z0-9\.]*\]/glob-$hash.glob' $hash]/g" $2
echo "hash=$(echo $hash)" >> $GITHUB_OUTPUT echo "hash=$(echo $hash)" >> $GITHUB_OUTPUT
hood "exit" hood "exit"
sleep 5s
rm -rf zod