mirror of
https://github.com/arthyn/sphinx.git
synced 2024-12-26 01:12:36 +03:00
ops: trying to work with s3cmd
This commit is contained in:
parent
032a699c73
commit
a8dd1c12fe
5
.github/actions/glob/action.yml
vendored
5
.github/actions/glob/action.yml
vendored
@ -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
|
4
.github/helpers/glob.sh
vendored
4
.github/helpers/glob.sh
vendored
@ -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
|
|
Loading…
Reference in New Issue
Block a user