Radish alpha
r
rad:z4D5UCArafTzTQpDZNQRuqswh3ury
Radicle desktop app
Radicle
Git
Fixes for build pipeline
Merged did:key:z6MkkfM3...sVz5 opened 10 months ago

We weren’t storing the version and where writing everything to sha.json instead of latest.json. Also we weren’t uploading json files in particular latest.json to the s3 storage.

We don’t need to create a patch and update download links anymore, this is handled by the latest/latest.json file

5 files changed +29 -12 44e02255 9629019d
modified .woodpecker/build-arch.yaml
@@ -4,7 +4,34 @@ when:
    branch: main
  - event: manual

+
variables:
+
  - &plugin-sccache-read-only
+
    s3-bucket: "build-caches"
+
    s3-endpoint: "https://minio-api.radworks.garden"
+
    s3-key-prefix: "radicle-desktop"
+
    save-if: "false"
+
    s3-access-key:
+
      from_secret: minio_access_key
+
    s3-secret-access-key:
+
      from_secret: minio_secret_key
+

steps:
+
  read_cache:
+
    image: quay.io/radicle_garden/plugin-sccache:latest
+
    volumes:
+
      - sccache:/sccache_data
+
    settings: *plugin-sccache-read-only
+

+
  update_cache:
+
    image: quay.io/radicle_garden/plugin-sccache:latest
+
    when:
+
      evaluate: 'CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH && CI_COMMIT_MESSAGE startsWith "Release"'
+
    volumes:
+
      - sccache:/sccache_data
+
    settings:
+
      <<: *plugin-sccache-read-only
+
      save-if: true
+

  build-arch:
    image: docker.io/library/archlinux:base-devel
    when:
modified .woodpecker/build.yaml
@@ -17,14 +17,12 @@ variables:
steps:
  read_cache:
    image: quay.io/radicle_garden/plugin-sccache:latest
-
    pull: true
    volumes:
      - sccache:/sccache_data
    settings: *plugin-sccache-read-only

  update_cache:
    image: quay.io/radicle_garden/plugin-sccache:latest
-
    pull: true
    when:
      evaluate: 'CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH && CI_COMMIT_MESSAGE startsWith "Release"'
    volumes:
@@ -70,7 +68,7 @@ steps:
        # Update latest build artifacts for upload
        cp target/release/bundle/deb/*.deb "$LATEST_DIR/deb"
        cp target/release/bundle/appimage/*.AppImage "$LATEST_DIR/appimage"
-
        echo "{\"sha\": \"$(git rev-parse HEAD)\"}" > "$LATEST_DIR/sha.json"
+
        echo "{\"sha\": \"$(git rev-parse HEAD)\", \"version\": \"$VERSION\"}" > "$LATEST_DIR/latest.json"

  upload-artifacts:
    image: woodpeckerci/plugin-s3
@@ -92,7 +90,7 @@ steps:
    settings:
      endpoint: https://minio-api.radworks.garden
      bucket: radworks-releases
-
      source: radicle-desktop/latest/*/*.{deb,AppImage}
+
      source: radicle-desktop/latest/*/*.{deb,json,AppImage}
      target: ""
      overwrite: true
      path_style: true
modified .woodpecker/e2e.yaml
@@ -19,14 +19,12 @@ variables:
steps:
  read_cache:
    image: quay.io/radicle_garden/plugin-sccache:latest
-
    pull: true
    volumes:
      - sccache:/sccache_data
    settings: *plugin-sccache-read-only

  update_cache:
    image: quay.io/radicle_garden/plugin-sccache:latest
-
    pull: true
    when:
      evaluate: 'CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH && CI_COMMIT_MESSAGE startsWith "Release"'
    volumes:
@@ -37,7 +35,6 @@ steps:

  end-to-end:
    image: quay.io/radicle_garden/radicle-desktop-e2e:latest
-
    pull: true
    volumes:
      - sccache:/sccache_data
    entrypoint:
modified .woodpecker/lint.yaml
@@ -17,14 +17,12 @@ variables:
steps:
  read_cache:
    image: quay.io/radicle_garden/plugin-sccache:latest
-
    pull: true
    volumes:
      - sccache:/sccache_data
    settings: *plugin-sccache-read-only

  update_cache:
    image: quay.io/radicle_garden/plugin-sccache:latest
-
    pull: true
    when:
      evaluate: 'CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH && CI_COMMIT_MESSAGE startsWith "Release"'
    volumes:
@@ -46,7 +44,6 @@ steps:

  lint_rust:
    image: quay.io/radicle_garden/radicle-desktop-base:latest
-
    pull: true
    volumes:
      - sccache:/sccache_data
    entrypoint:
modified RELEASE.md
@@ -21,8 +21,6 @@

  - Create a patch with the changes and wait for CI to pass

-
- Create a patch on [radworks-product][1] to [update the download links][2].
-
- Once merged, publish the website: `git push github main`.
- Publish the Arch package by pushing changes to the [Arch User Repository][4]:

  ```bash