Skip to content

Commit

Permalink
add workflow to sync cloudflare r2 and oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
YukariChiba committed Jul 21, 2024
1 parent d0cb087 commit a04b5b1
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish_iso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,29 @@ jobs:
name: eweos-${{ matrix.arch }}-${{ matrix.variant }}
path: results/
compression-level: 0
- name: Install s3cmd
if: github.event_name != 'pull_request'
run: sudo apt -y install s3cmd
- name: Upload to Cloudflare R2
if: github.event_name != 'pull_request'
run: |
s3cmd \
--access_key=${{ secrets.CF_IMG_S3_ACCESS_KEY }} \
--secret_key=${{ secrets.CF_IMG_S3_SECRET_KEY }} \
--host=${{ secrets.CF_IMG_S3_HOST }} \
--host-bucket=${{ secrets.CF_IMG_S3_HOST_BUCKET }} \
--bucket-location=auto \
--disable-multipart \
put results/* s3://eweos/eweos-images/
- name: Upload to Oracle Object Storage
if: github.event_name != 'pull_request'
run: |
s3cmd \
--access_key=${{ secrets.ORC_IMG_S3_ACCESS_KEY }} \
--secret_key=${{ secrets.ORC_IMG_S3_SECRET_KEY }} \
--host=${{ secrets.ORC_IMG_S3_HOST }} \
--host-bucket=${{ secrets.ORC_IMG_S3_HOST_BUCKET }} \
--bucket-location=auto \
--disable-multipart \
put results/* s3://eweos-repo/eweos-images/

0 comments on commit a04b5b1

Please sign in to comment.