From d2f7bb7e3c71fdfb91bc21d31ce01af3192cf0ab Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 25 Sep 2024 08:27:29 +0200 Subject: [PATCH] ci: update object store publishing --- .github/workflows/publish-web.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-web.yaml b/.github/workflows/publish-web.yaml index 511b74e..e3971ad 100644 --- a/.github/workflows/publish-web.yaml +++ b/.github/workflows/publish-web.yaml @@ -9,14 +9,15 @@ jobs: environment: publish steps: - uses: actions/checkout@v4 - - name: Push to Spaces + - name: Push to S3 uses: docker://docker.io/rclone/rclone:latest env: - RCLONE_CONFIG_SPACES_TYPE: s3 - RCLONE_CONFIG_SPACES_PROVIDER: DigitalOcean - RCLONE_CONFIG_SPACES_ACCESS_KEY_ID: ${{ secrets.SPACES_KEY }} - RCLONE_CONFIG_SPACES_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET }} - RCLONE_CONFIG_SPACES_ENDPOINT: ams3.digitaloceanspaces.com - RCLONE_CONFIG_SPACES_ACL: public-read + RCLONE_CONFIG_OBJSTORE_TYPE: s3 + RCLONE_CONFIG_OBJSTORE_PROVIDER: ${{ secrets.S3_PROVIDER }} + RCLONE_CONFIG_OBJSTORE_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }} + RCLONE_CONFIG_OBJSTORE_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }} + RCLONE_CONFIG_OBJSTORE_ENDPOINT: ${{ secrets.S3_ENDPOINT }} + RCLONE_CONFIG_OBJSTORE_REGION: ${{ secrets.S3_REGION }} + RCLONE_CONFIG_OBJSTORE_ACL: public-read with: - args: sync --exclude .git/** --exclude .gitignore --exclude .github/** --delete-excluded . spaces:syncthing/web + args: copy --exclude .git/** --exclude .gitignore --exclude .github/** . objstore:syncthing-apt