diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 3683ec6c35..788e69c723 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -150,7 +150,7 @@ jobs: build_ee_312: runs-on: ubicloud - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ startsWith(github.ref, 'refs/tags/v') }} steps: - uses: actions/checkout@v4 with: @@ -246,7 +246,7 @@ jobs: attach_amd64_binary_to_release: needs: [build, build_ee] runs-on: ubicloud - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ startsWith(github.ref, 'refs/tags/v') }} env: ARCH: amd64 steps: @@ -339,10 +339,10 @@ jobs: with: fetch-depth: 0 - name: Prepare test run - if: ${{ ! startsWith(github.ref, 'refs/tags/') }} + if: ${{ ! startsWith(github.ref, 'refs/tags/v') }} run: cd integration_tests && ./build.sh - name: Test run - if: ${{ ! startsWith(github.ref, 'refs/tags/') }} + if: ${{ ! startsWith(github.ref, 'refs/tags/v') }} timeout-minutes: 15 env: LICENSE_KEY: ${{ secrets.WM_LICENSE_KEY_CI }} @@ -358,7 +358,7 @@ jobs: tag_latest: runs-on: ubicloud needs: [run_integration_test, build] - if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) steps: - uses: actions/checkout@v4 with: @@ -377,7 +377,7 @@ jobs: tag_latest_ee: runs-on: ubicloud needs: [run_integration_test, build_ee] - if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) steps: - uses: actions/checkout@v4 with: @@ -396,7 +396,7 @@ jobs: verify_ee_image_vulnerabilities: runs-on: ubicloud needs: [tag_latest_ee] - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ startsWith(github.ref, 'refs/tags/v') }} steps: - name: Checkout code uses: actions/checkout@v4 @@ -573,7 +573,7 @@ jobs: bucket-region: us-east-1 build_ee_cuda: - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ startsWith(github.ref, 'refs/tags/v') }} needs: [build_ee] runs-on: ubicloud steps: @@ -617,7 +617,7 @@ jobs: org.opencontainers.image.licenses=Windmill-Enterprise-License build_slim: - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ startsWith(github.ref, 'refs/tags/v') }} needs: [build] runs-on: ubicloud steps: @@ -660,7 +660,7 @@ jobs: ${{ steps.meta-ee-public.outputs.labels }} build_ee_slim: - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ startsWith(github.ref, 'refs/tags/v') }} needs: [build_ee] runs-on: ubicloud steps: @@ -704,7 +704,7 @@ jobs: org.opencontainers.image.licenses=Windmill-Enterprise-License build_full: - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ startsWith(github.ref, 'refs/tags/v') }} needs: [build] runs-on: ubicloud steps: @@ -747,7 +747,7 @@ jobs: ${{ steps.meta-public.outputs.labels }} build_ee_full: - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ startsWith(github.ref, 'refs/tags/v') }} needs: [build_ee] runs-on: ubicloud steps: diff --git a/cli/instance.ts b/cli/instance.ts index 3e21bc72e4..9f3a8bd025 100644 --- a/cli/instance.ts +++ b/cli/instance.ts @@ -190,6 +190,21 @@ export async function pickInstance( allowNew: boolean ) { const instances = await allInstances(); + if (opts.baseUrl && opts.token && opts.instance) { + log.info("Using instance defined by --instance, --base-url and --token"); + + setClient( + opts.token, + opts.baseUrl.endsWith("/") ? opts.baseUrl.slice(0, -1) : opts.baseUrl + ); + + return { + name: opts.instance, + remote: opts.baseUrl, + token: opts.token, + prefix: opts.instance, + }; + } if (opts.baseUrl && opts.token) { log.info("Using instance fully defined by --base-url and --token"); @@ -687,7 +702,7 @@ const command = new Command() .option("--folder-per-instance", "Create a folder per instance") .option( "--instance ", - "Name of the instance to push to, override the active instance" + "Name of the instance to pull from, override the active instance" ) .action(instancePull as any) .command("push")