From db90705d4104fefb64e50efc94dd9b4244e336b3 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 17 Dec 2024 13:00:51 +0100 Subject: [PATCH] all --- .github/workflows/backend-test.yml | 14 ++--- .github/workflows/build-staging-image.yml | 70 ----------------------- 2 files changed, 7 insertions(+), 77 deletions(-) delete mode 100644 .github/workflows/build-staging-image.yml diff --git a/.github/workflows/backend-test.yml b/.github/workflows/backend-test.yml index b462d11907..710d41c292 100644 --- a/.github/workflows/backend-test.yml +++ b/.github/workflows/backend-test.yml @@ -33,11 +33,11 @@ jobs: - uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: 1.80.0 - # - uses: Swatinem/rust-cache@v2 - # with: - # workspaces: | - # backend - # backend -> target + - uses: ubicloud/rust-cache@v2 + with: + workspaces: | + backend + backend -> target - name: cargo test timeout-minutes: 15 run: @@ -46,5 +46,5 @@ jobs: && touch windmill-api/openapi-deref.yaml && DATABASE_URL=postgres://postgres:changeme@postgres:5432/windmill DISABLE_EMBEDDING=true RUST_LOG=info cargo test --features - enterprise,deno_core,license,http_trigger,zip,oauth2,python,rust --all -- - --nocapture + enterprise,deno_core,license,http_trigger,zip,oauth2,python,rust --all + -- --nocapture diff --git a/.github/workflows/build-staging-image.yml b/.github/workflows/build-staging-image.yml deleted file mode 100644 index 6aa18fe0b8..0000000000 --- a/.github/workflows/build-staging-image.yml +++ /dev/null @@ -1,70 +0,0 @@ -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} - -name: Build windmill-staging -on: - workflow_dispatch: - -permissions: write-all - -jobs: - build_ee: - runs-on: ubicloud - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Read EE repo commit hash - run: | - echo "ee_repo_ref=$(cat ./backend/ee-repo-ref.txt)" >> "$GITHUB_ENV" - - - uses: actions/checkout@v4 - with: - repository: windmill-labs/windmill-ee-private - path: ./windmill-ee-private - ref: ${{ env.ee_repo_ref }} - token: ${{ secrets.WINDMILL_EE_PRIVATE_ACCESS }} - fetch-depth: 0 - - # - name: Set up Docker Buildx - # uses: docker/setup-buildx-action@v2 - - uses: depot/setup-action@v1 - - - name: Docker meta - id: meta-ee-public - uses: docker/metadata-action@v5 - with: - images: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-staging-ee - flavor: | - latest=false - tags: | - type=sha - type=ref,event=branch - - - name: Login to registry - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Substitute EE code - run: | - ./backend/substitute_ee_code.sh --copy --dir ./windmill-ee-private - - - name: Build and push publicly ee - uses: depot/build-push-action@v1 - with: - context: . - platforms: linux/amd64,linux/arm64 - push: true - build-args: | - features=enterprise,enterprise_saml,stripe,embedding,parquet,prometheus,openidconnect,cloud,jemalloc,deno_core,license,http_trigger,zip,oauth2,kafka,php,mysql,mssql,bigquery,websocket,python,smtp,csharp,static_frontend,rust - tags: | - ${{ steps.meta-ee-public.outputs.tags }} - labels: | - ${{ steps.meta-ee-public.outputs.labels }} - org.opencontainers.image.licenses=Windmill-Enterprise-License