aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build-syncthing.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build-syncthing.yaml')
-rw-r--r--.github/workflows/build-syncthing.yaml57
1 files changed, 30 insertions, 27 deletions
diff --git a/.github/workflows/build-syncthing.yaml b/.github/workflows/build-syncthing.yaml
index eba9709d7..984d222b7 100644
--- a/.github/workflows/build-syncthing.yaml
+++ b/.github/workflows/build-syncthing.yaml
@@ -12,7 +12,7 @@ env:
# The go version to use for builds. We set check-latest to true when
# installing, so we get the latest patch version that matches the
# expression.
- GO_VERSION: "~1.22.0"
+ GO_VERSION: "~1.22.3"
# Optimize compatibility on the slow archictures.
GO386: softfloat
@@ -48,7 +48,7 @@ jobs:
runner: ["windows-latest", "ubuntu-latest", "macos-latest"]
# The oldest version in this list should match what we have in our go.mod.
# Variables don't seem to be supported here, or we could have done something nice.
- go: ["~1.21.7", "~1.22.0"]
+ go: ["~1.21.7", "~1.22.3"]
runs-on: ${{ matrix.runner }}
steps:
- name: Set git to use LF
@@ -642,19 +642,20 @@ jobs:
cd packages
"$GITHUB_WORKSPACE/tools/generate-release-json" "$BASE_URL" > nightly.json
env:
- BASE_URL: https://syncthing.ams3.digitaloceanspaces.com/nightly/
+ BASE_URL: ${{ secrets.NIGHTLY_BASE_URL }}
- name: Push artifacts
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 packages spaces:syncthing/nightly
+ args: sync packages objstore:${{ secrets.S3_BUCKET }}/nightly
#
# Push release artifacts to Spaces
@@ -696,29 +697,31 @@ jobs:
version=$(go run build.go version)
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
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 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
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
- with:
- args: sync spaces:syncthing/release/${{ env.VERSION }} spaces:syncthing/release/latest
+ 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 objstore:${{ secrets.S3_BUCKET }}/release/${{ env.VERSION }} objstore:${{ secrets.S3_BUCKET }}/release/latest
#
# Build and push to Docker Hub