From 7a6b70164fe1fa6ceedae55b7ac52a56fcfe75e0 Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Tue, 20 Aug 2024 12:10:21 +0200 Subject: [PATCH 01/26] Update lib-sun --- go.mod | 4 ++-- go.sum | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index b8f5f64..461e502 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.22.6 require ( github.com/spf13/pflag v1.0.5 - github.com/upsun/lib-sun v0.3.2 + github.com/upsun/lib-sun v0.3.3 ) require ( @@ -14,4 +14,4 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect ) -//replace github.com/upsun/lib-sun => ../lib-sun +// replace github.com/upsun/lib-sun => ../lib-sun diff --git a/go.sum b/go.sum index 5b560de..2fa3bbe 100644 --- a/go.sum +++ b/go.sum @@ -16,8 +16,8 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/upsun/lib-sun v0.3.2 h1:X+UaQdPOk+u2IscEiy7ZYBPsUH08YILmZfsenj5x6HM= -github.com/upsun/lib-sun v0.3.2/go.mod h1:8AtRNv0L+c9qCS/maO/OVFIn2VDi89LTkWwpB7YKTDE= +github.com/upsun/lib-sun v0.3.3 h1:HK3blCJPGfbny7kc35Zz4qKtuuKzEdMooBe7/MtYSco= +github.com/upsun/lib-sun v0.3.3/go.mod h1:8AtRNv0L+c9qCS/maO/OVFIn2VDi89LTkWwpB7YKTDE= golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= From e680b9ff877a9d173a8f0cb3257deff08d2a75ad Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Tue, 20 Aug 2024 12:15:57 +0200 Subject: [PATCH 02/26] Update lib-sun --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 461e502..2dcbec2 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.22.6 require ( github.com/spf13/pflag v1.0.5 - github.com/upsun/lib-sun v0.3.3 + github.com/upsun/lib-sun v0.3.4 ) require ( diff --git a/go.sum b/go.sum index 2fa3bbe..aa62c89 100644 --- a/go.sum +++ b/go.sum @@ -16,8 +16,8 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/upsun/lib-sun v0.3.3 h1:HK3blCJPGfbny7kc35Zz4qKtuuKzEdMooBe7/MtYSco= -github.com/upsun/lib-sun v0.3.3/go.mod h1:8AtRNv0L+c9qCS/maO/OVFIn2VDi89LTkWwpB7YKTDE= +github.com/upsun/lib-sun v0.3.4 h1:ANSleT49LOUHBO/gdKLzXTquC583K3h6IfKfUcQ2uH8= +github.com/upsun/lib-sun v0.3.4/go.mod h1:8AtRNv0L+c9qCS/maO/OVFIn2VDi89LTkWwpB7YKTDE= golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= From 64caa526b2cbef940c8a04bb1845407f8e8818b8 Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Wed, 21 Aug 2024 19:08:02 +0200 Subject: [PATCH 03/26] update CI --- .github/workflows/build.yaml | 71 +++++++++++++++++++++++++++++++--- .github/workflows/release.yaml | 10 +++++ 2 files changed, 75 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7bbf646..f53c51b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -5,10 +5,70 @@ on: branches: [ "master" ] pull_request: branches: [ "master" ] + schedule: + - cron: '0 10 * * 1' # run "At 10:00 on Monday" + +permissions: + contents: read + +env: + GOPRIVATE: github.com/upsun/lib-sun,github.com/upsun/convsun jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + with: + go-version: '1.22' + check-latest: true + - name: Run config private repo + env: + TOKEN: ${{ secrets.MICK_GITHUB_TOKEN }} + run: git config --global url."https://user:${TOKEN}@github.com".insteadOf https://github.com + - name: Run Go Format + run: gofmt -s -w . && git diff --exit-code + - name: Run Go Tidy + run: go mod tidy && git diff --exit-code + - name: Run Go Vet + run: go vet ./... + - name: Run Go Mod + run: go mod download + - name: Run Go Mod Verify + run: go mod verify + - uses: golangci/golangci-lint-action@v6 + with: + version: latest + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + - name: Run config private repo + env: + TOKEN: ${{ secrets.MICK_GITHUB_TOKEN }} + run: git config --global url."https://user:${TOKEN}@github.com".insteadOf https://github.com + - name: Run tests + run: go test -v -count=1 -race -shuffle=on -coverprofile=coverage.txt ./... + - name: Go Benchmark + run: go test -v -shuffle=on -run=- -bench=. -benchtime=1x ./... + - name: Install govulncheck + run: go install golang.org/x/vuln/cmd/govulncheck@latest + # - name: Run govulncheck + # run: govulncheck -test ./... + # - name: Upload Coverage + # uses: codecov/codecov-action@v3 + # continue-on-error: true # we don't care if it fails + # with: + # token: ${{secrets.CODECOV_TOKEN}} # set in repository settings + # file: ./coverage.txt # file from the previous step + # fail_ci_if_error: false + build: + needs: [test, lint] runs-on: ubuntu-latest strategy: matrix: @@ -20,14 +80,13 @@ jobs: goos: windows steps: - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v4 + - uses: actions/setup-go@v4 with: go-version: '1.22' + - name: Run config private repo + env: + TOKEN: ${{ secrets.MICK_GITHUB_TOKEN }} + run: git config --global url."https://user:${TOKEN}@github.com".insteadOf https://github.com - name: Build run: GOARCH=${{ matrix.goarch }} GOOS=${{ matrix.goos }} go build -v ./... - - # - name: Test - # run: go test -v ./... diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b2ad4e4..8875a41 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -24,7 +24,17 @@ jobs: - uses: actions/checkout@v4 - uses: wangyoucao577/go-release-action@v1 with: + pre_command: | + echo "machine github.com login ${{ github.actor }} password ${{ secrets.MICK_GITHUB_TOKEN }}" > ~/.netrc + chmod 600 ~/.netrc + git config --global --add url."https://github.com/".insteadOf "ssh://git@github.com/" + git config --global --add url."https://github.com/".insteadOf "git@github.com" + go env -w GOPRIVATE=github.com/upsun/* github_token: ${{ secrets.GITHUB_TOKEN }} goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} project_path: "./cmd/" + build_flags: -v + ldflags: -X "version.VERSION=${{ github.ref_name }}" + # -X "main.buildTime=${{ env.BUILD_TIME }}" -X main.gitCommit=${{ github.sha }} -X main.gitRef=${{ github.ref }} + extra_files: LICENSE README.md From 1506a419665f0f1c7ee789d171942b3a358def87 Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Wed, 21 Aug 2024 19:48:44 +0200 Subject: [PATCH 04/26] Add VS-launcher --- .vscode/launch.json | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..1c50957 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,27 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "convsun Run", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "${workspaceRoot}/cmd/upsun_convert.go", + "args": [ + "--src=${workspaceRoot}/tests/convert", + "--mount_type=instance" + ] + }, + { + "name": "convsun Help", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "${workspaceRoot}/cmd/upsun_convert.go", + "args": [ "--help" ] + }, + ] +} \ No newline at end of file From 73ac6ecb1dff4bbf10dde98550ed67b725f377fe Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Wed, 21 Aug 2024 20:23:33 +0200 Subject: [PATCH 05/26] Add Tests ressources --- .gitignore | 2 + tests/convert/.platform.app.yaml | 67 ++++++ tests/convert/.platform/applications.yaml | 121 +++++++++++ tests/convert/.platform/local/.gitkeep | 0 tests/convert/.platform/routes.yaml | 8 + tests/convert/.platform/services.yaml | 35 ++++ .../convert/.platform/solr-config/config.json | 0 tests/convert/.upsun/.gitkeep | 0 tests/convert/.upsun/config-ref.yaml | 192 ++++++++++++++++++ 9 files changed, 425 insertions(+) create mode 100644 tests/convert/.platform.app.yaml create mode 100644 tests/convert/.platform/applications.yaml create mode 100644 tests/convert/.platform/local/.gitkeep create mode 100644 tests/convert/.platform/routes.yaml create mode 100644 tests/convert/.platform/services.yaml create mode 100644 tests/convert/.platform/solr-config/config.json create mode 100644 tests/convert/.upsun/.gitkeep create mode 100644 tests/convert/.upsun/config-ref.yaml diff --git a/.gitignore b/.gitignore index b4784a4..c9c1cbc 100644 --- a/.gitignore +++ b/.gitignore @@ -187,3 +187,5 @@ build/** *.log tmp core + +tests/convert/.upsun/** diff --git a/tests/convert/.platform.app.yaml b/tests/convert/.platform.app.yaml new file mode 100644 index 0000000..0da66d6 --- /dev/null +++ b/tests/convert/.platform.app.yaml @@ -0,0 +1,67 @@ +name: app + +# Runtime pre-install +type: 'php:8.2' + +# Disk for App +disk: 2048 + +# Flexible Ressources +resources: + base_memory: 1024 + memory_ratio: 1024 + +dependencies: + php: + composer/composer: "^2" + +# vHost config +web: + locations: + "/": + root: "public" + passthru: "/index.php" + allow: true + scripts: true + +relationships: + database: "mysql:mysql" + +variables: + env: + CI_ENVIRONMENT: "production" + +# RW fs !! +mounts: + "writable/cache": + source: local + source_path: "writable/cache" + "writable/debugbar": { source: local, source_path: "writable/debugbar"} + "writable/logs": + source: local + source_path: "writable/logs" + "writable/session": + source: local + source_path: "writable/session" + "writable/upload": + source: local + source_path: "writable/upload" + "config": + source: local + source_path: "config" + +# Custom commands +hooks: + build: | + set -e + composer install --no-dev --optimize-autoloader + deploy: | + set -e + php generate_env.php + +source: + operations: + auto-update: + command: | + curl -fsS https://raw.githubusercontent.com/platformsh/source-operations/main/setup.sh | { bash /dev/fd/3 sop-autoupdate; } 3<&0 + diff --git a/tests/convert/.platform/applications.yaml b/tests/convert/.platform/applications.yaml new file mode 100644 index 0000000..e637975 --- /dev/null +++ b/tests/convert/.platform/applications.yaml @@ -0,0 +1,121 @@ +- name: drupal + type: php:8.1 + source: + root: drupal + dependencies: + php: + composer/composer: ^2 + nodejs: + n: "*" + variables: + env: + N_PREFIX: /app/.global + php: + memory_limit: "256M" + runtime: + extensions: + - redis + - newrelic + - apcu + relationships: + database: drupaldb:mysql + databox: drupaldb:databox + redis: cache:redis + auctionssearch: search_solr:auctionssearch + databasesearch: search_solr:databasesearch + userssearch: search_solr:userssearch + orderssearch: search_solr:orderssearch + collectionsearch: search_solr:collectionsearch + disk: 16384 + resources: + base_memory: 1024 + memory_ratio: 1024 + mounts: + web/sites/default/files: + source: local + source_path: files + /tmp: + source: local + source_path: tmp + /private: + source: local + source_path: private + /.drush: + source: local + source_path: drush + /drush-backups: + source: local + source_path: drush-backups + /.console: + source: local + source_path: console + /storage: + source: local + source_path: storage + build: + flavor: none + hooks: + build: | + set -e + n auto + hash -r + composer install --no-dev --prefer-dist --no-progress --no-interaction --optimize-autoloader --apcu-autoloader + composer dumpautoload -o + curl -fsS https://platform.sh/cli/installer | php + deploy: | + set -e + php ./drush/platformsh_generate_drush_yml.php + drush -y updatedb + drush -y config-import + drush -y cache-rebuild + drush locale:check + drush locale:update + web: + locations: + /: + root: web + expires: 1d + passthru: /index.php + allow: false + headers: + Access-Control-Allow-Origin: "*" + rules: + \.(jpe?g|png|gif|svgz?|css|js|map|ico|bmp|eot|woff2?|otf|ttf|webmanifest)$: + allow: true + ^/robots\.txt: + allow: true + ^/sitemap\.xml$: + allow: true + ^/sites/sites\.php$: + scripts: false + ^/sites/[^/]+/settings.*?\.php$: + scripts: false + /sites/default/files: + allow: true + expires: 2w + passthru: /index.php + root: web/sites/default/files + scripts: false + rules: + ^/sites/default/files/(css|js): + expires: 2w + crons: + drupal: + spec: '*/5 * * * *' + cmd: drush core-cron + backup: + spec: '0 5 * * *' + cmd: | + if [ "$PLATFORM_ENVIRONMENT_TYPE" = production ]; then + platform backup:create --yes --no-wait + fi + workers: + queues: + size: S + disk: 1024 + commands: + start: php worker.php +- name: app2 + type: php:8.1 + source: + root: app2 diff --git a/tests/convert/.platform/local/.gitkeep b/tests/convert/.platform/local/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/convert/.platform/routes.yaml b/tests/convert/.platform/routes.yaml new file mode 100644 index 0000000..38b70f0 --- /dev/null +++ b/tests/convert/.platform/routes.yaml @@ -0,0 +1,8 @@ +# This is my default route +“https://{default}/“: + type: upstream + upstream: app:http +# Redirect just... +“http://{default}“: + type: redirect + to: “https://{default}/” \ No newline at end of file diff --git a/tests/convert/.platform/services.yaml b/tests/convert/.platform/services.yaml new file mode 100644 index 0000000..e1aa78f --- /dev/null +++ b/tests/convert/.platform/services.yaml @@ -0,0 +1,35 @@ +sqldb: + # (https://docs.platform.sh/configuration/services/mysql.html#supported-versions) + type: mysql:10.5 + disk: 1024 + size: M + +timedb: + # (https://docs.platform.sh/configuration/services/influxdb.html#supported-versions) + type: influxdb:1.8 + disk: 1024 + +searchelastic: + # (https://docs.platform.sh/configuration/services/elasticsearch.html#supported-versions) + type: elasticsearch:7.10 + size: AUTO + disk: 9216 + resources: + base_memory: 512 + memory_ratio: 512 + +queuerabbit: + # (https://docs.platform.sh/configuration/services/rabbitmq.html#supported-versions) + type: rabbitmq:3.8 + # Canot be down size at 512Mo but consom 500Mo by default => Alerting (but why 512Mo limit ???) + # https://docs.platform.sh/configuration/services/rabbitmq.html#example-configuration + # https://www.rabbitmq.com/quorum-queues.html#resource-use + disk: 1024 + +headlessbrowser: + # (https://docs.platform.sh/configuration/services/headless-chrome.html#supported-versions) + type: chrome-headless:91 + #size: 4XL + resources: + base_memory: 512 + memory_ratio: 512 \ No newline at end of file diff --git a/tests/convert/.platform/solr-config/config.json b/tests/convert/.platform/solr-config/config.json new file mode 100644 index 0000000..e69de29 diff --git a/tests/convert/.upsun/.gitkeep b/tests/convert/.upsun/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/convert/.upsun/config-ref.yaml b/tests/convert/.upsun/config-ref.yaml new file mode 100644 index 0000000..b0367e0 --- /dev/null +++ b/tests/convert/.upsun/config-ref.yaml @@ -0,0 +1,192 @@ +applications: + app: + # Runtime pre-install + type: 'php:8.2' + dependencies: + php: + composer/composer: "^2" + # vHost config + web: + locations: + "/": + root: "public" + passthru: "/index.php" + allow: true + scripts: true + relationships: + database: "mysql:mysql" + variables: + env: + CI_ENVIRONMENT: "production" + # RW fs !! + mounts: + "writable/cache": + source: instance + source_path: "writable/cache" + "writable/debugbar": {source: instance, source_path: "writable/debugbar"} + "writable/logs": + source: instance + source_path: "writable/logs" + "writable/session": + source: instance + source_path: "writable/session" + "writable/upload": + source: instance + source_path: "writable/upload" + "config": + source: instance + source_path: "config" + # Custom commands + hooks: + build: | + set -e + composer install --no-dev --optimize-autoloader + deploy: | + set -e + php generate_env.php + source: + operations: + auto-update: + command: | + curl -fsS https://raw.githubusercontent.com/platformsh/source-operations/main/setup.sh | { bash /dev/fd/3 sop-autoupdate; } 3<&0 + root: / + drupal: + type: php:8.1 + source: + root: drupal + dependencies: + php: + composer/composer: ^2 + nodejs: + n: "*" + variables: + env: + N_PREFIX: /app/.global + php: + memory_limit: "256M" + runtime: + extensions: + - redis + - newrelic + - apcu + relationships: + database: drupaldb:mysql + databox: drupaldb:databox + redis: cache:redis + auctionssearch: search_solr:auctionssearch + databasesearch: search_solr:databasesearch + userssearch: search_solr:userssearch + orderssearch: search_solr:orderssearch + collectionsearch: search_solr:collectionsearch + mounts: + web/sites/default/files: + source: instance + source_path: files + /tmp: + source: instance + source_path: tmp + /private: + source: instance + source_path: private + /.drush: + source: instance + source_path: drush + /drush-backups: + source: instance + source_path: drush-backups + /.console: + source: instance + source_path: console + /storage: + source: instance + source_path: storage + build: + flavor: none + hooks: + build: | + set -e + n auto + hash -r + composer install --no-dev --prefer-dist --no-progress --no-interaction --optimize-autoloader --apcu-autoloader + composer dumpautoload -o + curl -fsS https://platform.sh/cli/installer | php + deploy: | + set -e + php ./drush/platformsh_generate_drush_yml.php + drush -y updatedb + drush -y config-import + drush -y cache-rebuild + drush locale:check + drush locale:update + web: + locations: + /: + root: web + expires: 1d + passthru: /index.php + allow: false + headers: + Access-Control-Allow-Origin: "*" + rules: + \.(jpe?g|png|gif|svgz?|css|js|map|ico|bmp|eot|woff2?|otf|ttf|webmanifest)$: + allow: true + ^/robots\.txt: + allow: true + ^/sitemap\.xml$: + allow: true + ^/sites/sites\.php$: + scripts: false + ^/sites/[^/]+/settings.*?\.php$: + scripts: false + /sites/default/files: + allow: true + expires: 2w + passthru: /index.php + root: web/sites/default/files + scripts: false + rules: + ^/sites/default/files/(css|js): + expires: 2w + crons: + drupal: + spec: '*/5 * * * *' + cmd: drush core-cron + backup: + spec: '0 5 * * *' + cmd: | + if [ "$PLATFORM_ENVIRONMENT_TYPE" = production ]; then + platform backup:create --yes --no-wait + fi + workers: + queues: + commands: + start: php worker.php + app2: + type: php:8.1 + source: + root: app2 +services: + sqldb: + # (https://docs.platform.sh/configuration/services/mysql.html#supported-versions) + type: mysql:10.5 + timedb: + # (https://docs.platform.sh/configuration/services/influxdb.html#supported-versions) + type: influxdb:1.8 + searchelastic: + # (https://docs.platform.sh/configuration/services/elasticsearch.html#supported-versions) + type: elasticsearch:7.10 + queuerabbit: + # (https://docs.platform.sh/configuration/services/rabbitmq.html#supported-versions) + type: rabbitmq:3.8 + headlessbrowser: + # (https://docs.platform.sh/configuration/services/headless-chrome.html#supported-versions) + type: chrome-headless:91 +routes: + # This is my default route + “https://{default}/“: + type: upstream + upstream: app:http + # Redirect just... + “http://{default}“: + type: redirect + to: “https://{default}/” From 92cf0f738b542701fddeeff9edf8d1e117d8e016 Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Fri, 30 Aug 2024 10:22:46 +0200 Subject: [PATCH 06/26] Add install section on README --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7841e37..92bbaf3 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,14 @@ ConvSun ========= -This tool uses **Platform.sh** config files *(routes.yaml, services.yaml and .platform.app.yaml)* to generate the **Upsun** config file *(config.yaml)* +This CLI-tool uses **Platform.sh** config files *(routes.yaml, services.yaml and .platform.app.yaml(s)/applications.yaml)* to generate the **Upsun** config file *(config.yaml)* > **WARNING : This tool handles classic 'multi-app...' cases but has not been tested for snowflack cases.** +#### Install + +Download the last binary in [release section](https://github.com/upsun/convsun/releases). +Extract it and enjoy ! + #### Syntax ``` Usage of convsun: From 75709d9b9be80854e002f04392224e4467c419cc Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Fri, 30 Aug 2024 10:26:09 +0200 Subject: [PATCH 07/26] Update library --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 2dcbec2..3813bba 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.22.6 require ( github.com/spf13/pflag v1.0.5 - github.com/upsun/lib-sun v0.3.4 + github.com/upsun/lib-sun v0.3.8 ) require ( diff --git a/go.sum b/go.sum index aa62c89..6838e3b 100644 --- a/go.sum +++ b/go.sum @@ -16,8 +16,8 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/upsun/lib-sun v0.3.4 h1:ANSleT49LOUHBO/gdKLzXTquC583K3h6IfKfUcQ2uH8= -github.com/upsun/lib-sun v0.3.4/go.mod h1:8AtRNv0L+c9qCS/maO/OVFIn2VDi89LTkWwpB7YKTDE= +github.com/upsun/lib-sun v0.3.8 h1:vrSQ/eV/NFyi6PmCdQUltb/4vw7vBSnzFFf10LCzs0o= +github.com/upsun/lib-sun v0.3.8/go.mod h1:8AtRNv0L+c9qCS/maO/OVFIn2VDi89LTkWwpB7YKTDE= golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= From d8694d264be76beaaf1c721bc4f2552e062c2369 Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Wed, 18 Sep 2024 14:10:06 +0200 Subject: [PATCH 08/26] Add Upsun Disclaimer (#2) Add Upsun Disclaimer --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 92bbaf3..62c0d81 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +> [!CAUTION] +> ## This project is owned by the Upsun Advocacy team. It is in an early stage of development [experimental] and only intended to be used by Upsun customers/community.

This project is not supported by Upsun and does not qualify for Support plans. It's provided without guarantee or warranty ! + ConvSun ========= From 6e4dfdffca283c81203669aa83807e41c9b03a48 Mon Sep 17 00:00:00 2001 From: NDuncan Date: Wed, 18 Sep 2024 16:10:42 +0200 Subject: [PATCH 09/26] Update README.md fixing typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 62c0d81..1f20945 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ > [!CAUTION] -> ## This project is owned by the Upsun Advocacy team. It is in an early stage of development [experimental] and only intended to be used by Upsun customers/community.

This project is not supported by Upsun and does not qualify for Support plans. It's provided without guarantee or warranty ! +> ## This project is owned by the Upsun Advocacy team. It is in early stage of development [experimental] and only intended to be used by Upsun customers/community.

This project is not supported by Upsun and does not qualify for Support plans. It's provided without guarantee or warranty! ConvSun ========= @@ -22,4 +22,4 @@ Usage of convsun: ``` #### Sample -`$ upsun_convert --src=tests/convert"` \ No newline at end of file +`$ upsun_convert --src=tests/convert"` From d6ea5fd7a8f5d999aa02750d077756b4c62699e5 Mon Sep 17 00:00:00 2001 From: NDuncan Date: Thu, 19 Sep 2024 10:26:39 +0200 Subject: [PATCH 10/26] Update README.md add use at your own risks... --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f20945..d79e3ba 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ > [!CAUTION] -> ## This project is owned by the Upsun Advocacy team. It is in early stage of development [experimental] and only intended to be used by Upsun customers/community.

This project is not supported by Upsun and does not qualify for Support plans. It's provided without guarantee or warranty! +> ## This project is owned by the Upsun Advocacy team. It is in early stage of development [experimental] and only intended to be used by Upsun customers/community.

This project is not supported by Upsun and does not qualify for Support plans. Use this repository at your own risks, it is provided without guarantee or warranty! ConvSun ========= From 6d815ba1a8e774f4f031ae54847de2f22e438301 Mon Sep 17 00:00:00 2001 From: NDuncan Date: Thu, 19 Sep 2024 17:41:00 +0200 Subject: [PATCH 11/26] Update README.md adding caution --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d79e3ba..d470022 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ > [!CAUTION] -> ## This project is owned by the Upsun Advocacy team. It is in early stage of development [experimental] and only intended to be used by Upsun customers/community.

This project is not supported by Upsun and does not qualify for Support plans. Use this repository at your own risks, it is provided without guarantee or warranty! +> ## This project is owned by the Upsun Advocacy team. It is in early stage of development [experimental] and only intended to be used with caution by Upsun customers/community.

This project is not supported by Upsun and does not qualify for Support plans. Use this repository at your own risks, it is provided without guarantee or warranty! ConvSun ========= From 4d055567f5b78fe30ae8d9137b5f9e1d93077f1d Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Mon, 23 Sep 2024 11:30:32 +0200 Subject: [PATCH 12/26] Update library --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 3813bba..dbd233f 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.22.6 require ( github.com/spf13/pflag v1.0.5 - github.com/upsun/lib-sun v0.3.8 + github.com/upsun/lib-sun v0.3.11 ) require ( From 586e0bd7d661ef63870b7cff34ce7bc3442c27ff Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Mon, 23 Sep 2024 19:09:00 +0200 Subject: [PATCH 13/26] HotFix add checksum file --- go.sum | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go.sum b/go.sum index 6838e3b..72377e9 100644 --- a/go.sum +++ b/go.sum @@ -16,8 +16,8 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/upsun/lib-sun v0.3.8 h1:vrSQ/eV/NFyi6PmCdQUltb/4vw7vBSnzFFf10LCzs0o= -github.com/upsun/lib-sun v0.3.8/go.mod h1:8AtRNv0L+c9qCS/maO/OVFIn2VDi89LTkWwpB7YKTDE= +github.com/upsun/lib-sun v0.3.11 h1:yhlZWWQeIXcm5PLcniV8cbA2Y7kQ/Fkf/0QDPpIi010= +github.com/upsun/lib-sun v0.3.11/go.mod h1:8AtRNv0L+c9qCS/maO/OVFIn2VDi89LTkWwpB7YKTDE= golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= From d4e779e30e7130f96017863b2b21552954fd8df4 Mon Sep 17 00:00:00 2001 From: NDuncan Date: Fri, 27 Sep 2024 18:23:29 +0200 Subject: [PATCH 14/26] Update README.md Adding Discord link --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d470022..9679723 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ > [!CAUTION] > ## This project is owned by the Upsun Advocacy team. It is in early stage of development [experimental] and only intended to be used with caution by Upsun customers/community.

This project is not supported by Upsun and does not qualify for Support plans. Use this repository at your own risks, it is provided without guarantee or warranty! +Don't hesitate to join our [Discord]([url](https://discord.com/invite/platformsh)) to share your thoughts about this project. + ConvSun ========= From 063bc6fbd16cc72a2e3a39183155ceaf87f79837 Mon Sep 17 00:00:00 2001 From: NDuncan Date: Fri, 27 Sep 2024 18:28:08 +0200 Subject: [PATCH 15/26] Update README.md Discord link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9679723..759d8c7 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ > [!CAUTION] > ## This project is owned by the Upsun Advocacy team. It is in early stage of development [experimental] and only intended to be used with caution by Upsun customers/community.

This project is not supported by Upsun and does not qualify for Support plans. Use this repository at your own risks, it is provided without guarantee or warranty! +> Don’t hesitate to join our [Discord](https://discord.com/invite/platformsh) to share your thoughts about this project. -Don't hesitate to join our [Discord]([url](https://discord.com/invite/platformsh)) to share your thoughts about this project. ConvSun ========= From ac8032f804a9ccabb29e242db9d2e9ef085e7a99 Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Mon, 2 Dec 2024 15:05:53 +0100 Subject: [PATCH 16/26] Update library Rename mount shared (deprecated) --- go.mod | 2 +- internal/logic/convert_config.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index dbd233f..dd116a4 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.22.6 require ( github.com/spf13/pflag v1.0.5 - github.com/upsun/lib-sun v0.3.11 + github.com/upsun/lib-sun v0.3.13 ) require ( diff --git a/internal/logic/convert_config.go b/internal/logic/convert_config.go index dbc6dcc..2a34685 100644 --- a/internal/logic/convert_config.go +++ b/internal/logic/convert_config.go @@ -47,6 +47,7 @@ func Convert(projectWorkspace string, outputFilePath string) { // if entry.ValueNode != nil { log.Println("Replace all mount type on " + entity.PSH_PLATFORM + "/" + entity.PSH_APPLICATION + "...") readers.ReplaceAllEntry(&metamodel.Applications, "local", app.ArgsC.TypeMount) + readers.ReplaceAllEntry(&metamodel.Applications, "shared", app.ArgsC.TypeMount) // } // - Remove Disk From 4a8aed6354f1085a89ed0428aa70f4131e1e63f7 Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Fri, 10 Jan 2025 10:14:04 +0100 Subject: [PATCH 17/26] Move caution section after summary --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 759d8c7..b00938b 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ -> [!CAUTION] -> ## This project is owned by the Upsun Advocacy team. It is in early stage of development [experimental] and only intended to be used with caution by Upsun customers/community.

This project is not supported by Upsun and does not qualify for Support plans. Use this repository at your own risks, it is provided without guarantee or warranty! -> Don’t hesitate to join our [Discord](https://discord.com/invite/platformsh) to share your thoughts about this project. - - ConvSun ========= This CLI-tool uses **Platform.sh** config files *(routes.yaml, services.yaml and .platform.app.yaml(s)/applications.yaml)* to generate the **Upsun** config file *(config.yaml)* + +> [!CAUTION] +> **This project is owned by the Upsun Advocacy team. It is in early stage of development [experimental] and only intended to be used with caution by Upsun customers/community.

This project is not supported by Upsun and does not qualify for Support plans. Use this repository at your own risks, it is provided without guarantee or warranty!** +> Don’t hesitate to join our [Discord](https://discord.com/invite/platformsh) to share your thoughts about this project. + > **WARNING : This tool handles classic 'multi-app...' cases but has not been tested for snowflack cases.** #### Install From eebe35c34821410e5c8832452d51a33c547c9571 Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Wed, 29 Jan 2025 14:45:15 +0100 Subject: [PATCH 18/26] Update lib for Fix #3 & Fix #5 --- README.md | 2 +- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b00938b..d63ee82 100644 --- a/README.md +++ b/README.md @@ -24,4 +24,4 @@ Usage of convsun: ``` #### Sample -`$ upsun_convert --src=tests/convert"` +`$ convsun --src=tests/convert"` diff --git a/go.mod b/go.mod index dd116a4..1797537 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.22.6 require ( github.com/spf13/pflag v1.0.5 - github.com/upsun/lib-sun v0.3.13 + github.com/upsun/lib-sun v0.3.14 ) require ( diff --git a/go.sum b/go.sum index 4f100c7..7b0f1c8 100644 --- a/go.sum +++ b/go.sum @@ -16,8 +16,8 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/upsun/lib-sun v0.3.13 h1:gB40P4XBeu/sMrEGASCZ+vuf1m4Xy13ndAGAPECy/Tw= -github.com/upsun/lib-sun v0.3.13/go.mod h1:8AtRNv0L+c9qCS/maO/OVFIn2VDi89LTkWwpB7YKTDE= +github.com/upsun/lib-sun v0.3.14 h1:qD36j2bPMbGMmDH7Gu8lI8KZtTt+HnmeO/O/kRZ08ec= +github.com/upsun/lib-sun v0.3.14/go.mod h1:8AtRNv0L+c9qCS/maO/OVFIn2VDi89LTkWwpB7YKTDE= golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= From fd80b18cafb4fd08daaaaef396e38da5c36763a7 Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Mon, 10 Feb 2025 12:44:04 +0100 Subject: [PATCH 19/26] Update libraries --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 1797537..9492b92 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/upsun/convsun -go 1.22.6 +go 1.23.5 require ( github.com/spf13/pflag v1.0.5 From 3575d760302a4752146a4b26bb38a92f58c0b10c Mon Sep 17 00:00:00 2001 From: Guillaume Moigneu Date: Mon, 14 Apr 2025 09:42:14 -0500 Subject: [PATCH 20/26] Update README.md with a few typo fixes --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d63ee82..0eab09a 100644 --- a/README.md +++ b/README.md @@ -4,15 +4,15 @@ ConvSun This CLI-tool uses **Platform.sh** config files *(routes.yaml, services.yaml and .platform.app.yaml(s)/applications.yaml)* to generate the **Upsun** config file *(config.yaml)* > [!CAUTION] -> **This project is owned by the Upsun Advocacy team. It is in early stage of development [experimental] and only intended to be used with caution by Upsun customers/community.

This project is not supported by Upsun and does not qualify for Support plans. Use this repository at your own risks, it is provided without guarantee or warranty!** +> **This project is owned by the Upsun Advocacy team. It is in the early stage of development [experimental] and only intended to be used with caution by Upsun customers/community.

This project is not supported by Upsun and does not qualify for Support plans. Use this repository at your own risk, it is provided without guarantee or warranty!** > Don’t hesitate to join our [Discord](https://discord.com/invite/platformsh) to share your thoughts about this project. -> **WARNING : This tool handles classic 'multi-app...' cases but has not been tested for snowflack cases.** +> **WARNING: This tool handles classic 'multi-app...' cases but has not been tested for snowflake cases.** #### Install Download the last binary in [release section](https://github.com/upsun/convsun/releases). -Extract it and enjoy ! +Extract it and enjoy! #### Syntax ``` From 8d6c54335754c7e874600b8c3394e9de798f1046 Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Tue, 22 Apr 2025 12:09:08 +0200 Subject: [PATCH 21/26] Remove private repository (SEC-587) --- .github/workflows/build.yaml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f53c51b..179d378 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -24,10 +24,6 @@ jobs: with: go-version: '1.22' check-latest: true - - name: Run config private repo - env: - TOKEN: ${{ secrets.MICK_GITHUB_TOKEN }} - run: git config --global url."https://user:${TOKEN}@github.com".insteadOf https://github.com - name: Run Go Format run: gofmt -s -w . && git diff --exit-code - name: Run Go Tidy @@ -47,10 +43,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v4 - - name: Run config private repo - env: - TOKEN: ${{ secrets.MICK_GITHUB_TOKEN }} - run: git config --global url."https://user:${TOKEN}@github.com".insteadOf https://github.com - name: Run tests run: go test -v -count=1 -race -shuffle=on -coverprofile=coverage.txt ./... - name: Go Benchmark @@ -83,10 +75,5 @@ jobs: - uses: actions/setup-go@v4 with: go-version: '1.22' - - name: Run config private repo - env: - TOKEN: ${{ secrets.MICK_GITHUB_TOKEN }} - run: git config --global url."https://user:${TOKEN}@github.com".insteadOf https://github.com - - name: Build run: GOARCH=${{ matrix.goarch }} GOOS=${{ matrix.goos }} go build -v ./... From 7b9d15a7976a205c657bf43308496004ed4d7bab Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Tue, 22 Apr 2025 12:14:20 +0200 Subject: [PATCH 22/26] Enabled GH action on all PR --- .github/workflows/build.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 179d378..0045f2a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -4,7 +4,6 @@ on: push: branches: [ "master" ] pull_request: - branches: [ "master" ] schedule: - cron: '0 10 * * 1' # run "At 10:00 on Monday" From 97914dafb3ee398f02c5204b67bc1758a7924cb7 Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Tue, 22 Apr 2025 12:25:46 +0200 Subject: [PATCH 23/26] Change on trigger --- .github/workflows/build.yaml | 5 ----- .github/workflows/release.yaml | 7 ------- 2 files changed, 12 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0045f2a..e5cf930 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,17 +2,12 @@ name: Build on: push: - branches: [ "master" ] - pull_request: schedule: - cron: '0 10 * * 1' # run "At 10:00 on Monday" permissions: contents: read -env: - GOPRIVATE: github.com/upsun/lib-sun,github.com/upsun/convsun - jobs: lint: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8875a41..f5b2823 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -24,13 +24,6 @@ jobs: - uses: actions/checkout@v4 - uses: wangyoucao577/go-release-action@v1 with: - pre_command: | - echo "machine github.com login ${{ github.actor }} password ${{ secrets.MICK_GITHUB_TOKEN }}" > ~/.netrc - chmod 600 ~/.netrc - git config --global --add url."https://github.com/".insteadOf "ssh://git@github.com/" - git config --global --add url."https://github.com/".insteadOf "git@github.com" - go env -w GOPRIVATE=github.com/upsun/* - github_token: ${{ secrets.GITHUB_TOKEN }} goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} project_path: "./cmd/" From 0f2731e63b2e0e5252a16df659d62cca1671ea69 Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Tue, 22 Apr 2025 12:35:37 +0200 Subject: [PATCH 24/26] Upgrade Go version for GH action --- .github/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e5cf930..e5794c9 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: '1.22' + go-version: '1.23' check-latest: true - name: Run Go Format run: gofmt -s -w . && git diff --exit-code @@ -68,6 +68,6 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: '1.22' + go-version: '1.23' - name: Build run: GOARCH=${{ matrix.goarch }} GOOS=${{ matrix.goos }} go build -v ./... From 31d0ef93ef987faede0c328d602b4072d15df1ab Mon Sep 17 00:00:00 2001 From: Mickael Gaillard Date: Wed, 23 Apr 2025 17:19:43 +0200 Subject: [PATCH 25/26] Fix bad remove --- .github/workflows/build.yaml | 3 +++ .github/workflows/release.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e5794c9..78fb752 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,6 +2,9 @@ name: Build on: push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] schedule: - cron: '0 10 * * 1' # run "At 10:00 on Monday" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f5b2823..807e08f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -24,6 +24,7 @@ jobs: - uses: actions/checkout@v4 - uses: wangyoucao577/go-release-action@v1 with: + github_token: ${{ secrets.GITHUB_TOKEN }} goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} project_path: "./cmd/" From 7d9d0c5d968eeb6d173a541a411dda16e5ca652e Mon Sep 17 00:00:00 2001 From: NDuncan Date: Tue, 23 Sep 2025 14:58:52 +0200 Subject: [PATCH 26/26] updating Discord link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b00938b..b30719e 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This CLI-tool uses **Platform.sh** config files *(routes.yaml, services.yaml and > [!CAUTION] > **This project is owned by the Upsun Advocacy team. It is in early stage of development [experimental] and only intended to be used with caution by Upsun customers/community.

This project is not supported by Upsun and does not qualify for Support plans. Use this repository at your own risks, it is provided without guarantee or warranty!** -> Don’t hesitate to join our [Discord](https://discord.com/invite/platformsh) to share your thoughts about this project. +> Don’t hesitate to join our [Discord](https://discord.gg/upsun) to share your thoughts about this project. > **WARNING : This tool handles classic 'multi-app...' cases but has not been tested for snowflack cases.**