mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
build: Generalise S3 push options
This commit is contained in:
parent
e50933433e
commit
94181ade23
48
.github/workflows/build-syncthing.yaml
vendored
48
.github/workflows/build-syncthing.yaml
vendored
@ -642,19 +642,19 @@ jobs:
|
|||||||
cd packages
|
cd packages
|
||||||
"$GITHUB_WORKSPACE/tools/generate-release-json" "$BASE_URL" > nightly.json
|
"$GITHUB_WORKSPACE/tools/generate-release-json" "$BASE_URL" > nightly.json
|
||||||
env:
|
env:
|
||||||
BASE_URL: https://syncthing.ams3.digitaloceanspaces.com/nightly/
|
BASE_URL: ${{ secrets.NIGHTLY_BASE_URL }}
|
||||||
|
|
||||||
- name: Push artifacts
|
- name: Push artifacts
|
||||||
uses: docker://docker.io/rclone/rclone:latest
|
uses: docker://docker.io/rclone/rclone:latest
|
||||||
env:
|
env:
|
||||||
RCLONE_CONFIG_SPACES_TYPE: s3
|
RCLONE_CONFIG_OBJSTORE_TYPE: s3
|
||||||
RCLONE_CONFIG_SPACES_PROVIDER: DigitalOcean
|
RCLONE_CONFIG_OBJSTORE_PROVIDER: ${{ secrets.S3_PROVIDER }}
|
||||||
RCLONE_CONFIG_SPACES_ACCESS_KEY_ID: ${{ secrets.SPACES_KEY }}
|
RCLONE_CONFIG_OBJSTORE_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
|
||||||
RCLONE_CONFIG_SPACES_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET }}
|
RCLONE_CONFIG_OBJSTORE_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}
|
||||||
RCLONE_CONFIG_SPACES_ENDPOINT: ams3.digitaloceanspaces.com
|
RCLONE_CONFIG_OBJSTORE_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
|
||||||
RCLONE_CONFIG_SPACES_ACL: public-read
|
RCLONE_CONFIG_OBJSTORE_ACL: public-read
|
||||||
with:
|
with:
|
||||||
args: sync packages spaces:syncthing/nightly
|
args: sync packages objstore:${{ secrets.S3_BUCKET }}/nightly
|
||||||
|
|
||||||
#
|
#
|
||||||
# Push release artifacts to Spaces
|
# Push release artifacts to Spaces
|
||||||
@ -696,29 +696,29 @@ jobs:
|
|||||||
version=$(go run build.go version)
|
version=$(go run build.go version)
|
||||||
echo "VERSION=$version" >> $GITHUB_ENV
|
echo "VERSION=$version" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Push to Spaces (${{ env.VERSION }})
|
- name: Push to object store (${{ env.VERSION }})
|
||||||
uses: docker://docker.io/rclone/rclone:latest
|
uses: docker://docker.io/rclone/rclone:latest
|
||||||
env:
|
env:
|
||||||
RCLONE_CONFIG_SPACES_TYPE: s3
|
RCLONE_CONFIG_OBJSTORE_TYPE: s3
|
||||||
RCLONE_CONFIG_SPACES_PROVIDER: DigitalOcean
|
RCLONE_CONFIG_OBJSTORE_PROVIDER: ${{ secrets.S3_PROVIDER }}
|
||||||
RCLONE_CONFIG_SPACES_ACCESS_KEY_ID: ${{ secrets.SPACES_KEY }}
|
RCLONE_CONFIG_OBJSTORE_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
|
||||||
RCLONE_CONFIG_SPACES_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET }}
|
RCLONE_CONFIG_OBJSTORE_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}
|
||||||
RCLONE_CONFIG_SPACES_ENDPOINT: ams3.digitaloceanspaces.com
|
RCLONE_CONFIG_OBJSTORE_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
|
||||||
RCLONE_CONFIG_SPACES_ACL: public-read
|
RCLONE_CONFIG_OBJSTORE_ACL: public-read
|
||||||
with:
|
with:
|
||||||
args: sync packages spaces:syncthing/release/${{ env.VERSION }}
|
args: sync packages objstore:${{ secrets.S3_BUCKET }}/release/${{ env.VERSION }}
|
||||||
|
|
||||||
- name: Push to Spaces (latest)
|
- name: Push to object store (latest)
|
||||||
uses: docker://docker.io/rclone/rclone:latest
|
uses: docker://docker.io/rclone/rclone:latest
|
||||||
env:
|
env:
|
||||||
RCLONE_CONFIG_SPACES_TYPE: s3
|
RCLONE_CONFIG_OBJSTORE_TYPE: s3
|
||||||
RCLONE_CONFIG_SPACES_PROVIDER: DigitalOcean
|
RCLONE_CONFIG_OBJSTORE_PROVIDER: ${{ secrets.S3_PROVIDER }}
|
||||||
RCLONE_CONFIG_SPACES_ACCESS_KEY_ID: ${{ secrets.SPACES_KEY }}
|
RCLONE_CONFIG_OBJSTORE_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
|
||||||
RCLONE_CONFIG_SPACES_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET }}
|
RCLONE_CONFIG_OBJSTORE_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}
|
||||||
RCLONE_CONFIG_SPACES_ENDPOINT: ams3.digitaloceanspaces.com
|
RCLONE_CONFIG_OBJSTORE_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
|
||||||
RCLONE_CONFIG_SPACES_ACL: public-read
|
RCLONE_CONFIG_OBJSTORE_ACL: public-read
|
||||||
with:
|
with:
|
||||||
args: sync spaces:syncthing/release/${{ env.VERSION }} spaces:syncthing/release/latest
|
args: sync objstore:${{ secrets.S3_BUCKET }}/release/${{ env.VERSION }} objstore:${{ secrets.S3_BUCKET }}/release/latest
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build and push to Docker Hub
|
# Build and push to Docker Hub
|
||||||
|
Loading…
Reference in New Issue
Block a user