From 51ef183937cbf00d72ade585fa8a0bf56c2b2323 Mon Sep 17 00:00:00 2001 From: Guillaume Deconinck Date: Tue, 16 Jul 2024 10:53:36 +0900 Subject: [PATCH] ci: comment out server Docker release --- .github/workflows/release.yml | 110 +++++++++++++++++----------------- 1 file changed, 55 insertions(+), 55 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index df738624..8a6c3572 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,63 +10,63 @@ on: - "v[0-9]+.[0-9]+.[0-9]+" jobs: - docker-release: - runs-on: ubuntu-latest - services: - postgres: - image: postgres:13 - env: - POSTGRES_PASSWORD: postgres - POSTGRES_DB: nettuscheduler - ports: - - 5432:5432 - env: - DATABASE_URL: postgresql://postgres:postgres@localhost/nettuscheduler - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Set version env - run: | - # v1.0.0 --> 1.0.0 - VERSION=${GITHUB_REF#refs/*/} - echo "VERSION=${VERSION:1}" >> $GITHUB_ENV + # docker-release: + # runs-on: ubuntu-latest + # services: + # postgres: + # image: postgres:13 + # env: + # POSTGRES_PASSWORD: postgres + # POSTGRES_DB: nettuscheduler + # ports: + # - 5432:5432 + # env: + # DATABASE_URL: postgresql://postgres:postgres@localhost/nettuscheduler + # steps: + # - name: Checkout + # uses: actions/checkout@v4 + # - name: Set version env + # run: | + # # v1.0.0 --> 1.0.0 + # VERSION=${GITHUB_REF#refs/*/} + # echo "VERSION=${VERSION:1}" >> $GITHUB_ENV - - uses: actions/cache@v4 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - scheduler/target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Login to DockerHub - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + # - uses: actions/cache@v4 + # with: + # path: | + # ~/.cargo/bin/ + # ~/.cargo/registry/index/ + # ~/.cargo/registry/cache/ + # ~/.cargo/git/db/ + # scheduler/target/ + # key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - name: Run migrations - run: | - cd scheduler - cargo install sqlx-cli --no-default-features --features postgres || true - (cd crates/infra && sqlx migrate run) + # - name: Set up QEMU + # uses: docker/setup-qemu-action@v3 + # - name: Set up Docker Buildx + # uses: docker/setup-buildx-action@v3 + # - name: Login to DockerHub + # uses: docker/login-action@v3 + # with: + # registry: ghcr.io + # username: ${{ github.actor }} + # password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push - uses: docker/build-push-action@v6 - with: - context: ./scheduler - push: true - file: "{context}/debian.Dockerfile" - tags: | - fmeringdal/nettu-scheduler:latest - fmeringdal/nettu-scheduler:${{ env.VERSION }} + # - name: Run migrations + # run: | + # cd scheduler + # cargo install sqlx-cli --no-default-features --features postgres || true + # (cd crates/infra && sqlx migrate run) + + # - name: Build and push + # uses: docker/build-push-action@v6 + # with: + # context: ./scheduler + # push: true + # file: "{context}/debian.Dockerfile" + # tags: | + # fmeringdal/nettu-scheduler:latest + # fmeringdal/nettu-scheduler:${{ env.VERSION }} # We don't use the Rust client for now # To re-enable later @@ -206,7 +206,7 @@ jobs: javascript-client-release: runs-on: ubuntu-latest - needs: docker-release + # needs: docker-release steps: - name: Checkout uses: actions/checkout@v4