diff --git a/.github/workflows/release-production.yml b/.github/workflows/release-production.yml index 7d5f4e0f12a..f4c47425799 100644 --- a/.github/workflows/release-production.yml +++ b/.github/workflows/release-production.yml @@ -3,86 +3,87 @@ name: Release Production on: push: tags: [ v* ] + branches: [ "6961-marketplace-fails" ] jobs: - image: - strategy: - matrix: - module: [ graphql, grpc, importer, monitor, rest, rest-java, rest-monitor, rosetta, test, web3 ] - env: - CONTEXT: hedera-mirror-${{ matrix.module }} - IMAGE: gcr.io/mirrornode/hedera-mirror-${{ matrix.module }} - name: Publish images - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Get tag - run: echo "TAG=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV - - - name: Custom monitor path - if: matrix.module == 'rest-monitor' - run: echo "CONTEXT=hedera-mirror-rest/monitoring" >> $GITHUB_ENV - - - name: Install JDK - uses: actions/setup-java@v3 - with: - distribution: 'temurin' - java-version: 17 - - - name: Authenticate to Google Cloud - uses: google-github-actions/auth@v1 - with: - credentials_json: '${{ secrets.GCR_KEY }}' - - - name: Setup gcloud - uses: google-github-actions/setup-gcloud@v1 - - - name: Configure Docker - run: gcloud auth configure-docker gcr.io,marketplace.gcr.io - - - name: Build - uses: gradle/gradle-build-action@v2 - if: matrix.module != 'rest' && matrix.module != 'rest-monitor' && matrix.module != 'rosetta' - with: - arguments: build -x test - - - name: Setup QEMU - uses: docker/setup-qemu-action@v3 - - - name: Setup Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Build and push images - uses: docker/build-push-action@v5 - with: - build-args: VERSION=${{env.TAG}} - cache-from: type=gha - cache-to: type=gha,mode=max - context: ${{env.CONTEXT}} - platforms: linux/amd64, linux/arm64 - provenance: false - push: true - tags: ${{env.IMAGE}}:${{env.TAG}},${{env.IMAGE}}:latest - - chart: - name: Publish charts - needs: image - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Publish helm chart - uses: stefanprodan/helm-gh-pages@v1.7.0 - with: - target_dir: charts - token: ${{ secrets.GITHUB_TOKEN }} + # image: + # strategy: + # matrix: + # module: [ graphql, grpc, importer, monitor, rest, rest-java, rest-monitor, rosetta, test, web3 ] + # env: + # CONTEXT: hedera-mirror-${{ matrix.module }} + # IMAGE: gcr.io/mirrornode/hedera-mirror-${{ matrix.module }} + # name: Publish images + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # + # - name: Get tag + # run: echo "TAG=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV + # + # - name: Custom monitor path + # if: matrix.module == 'rest-monitor' + # run: echo "CONTEXT=hedera-mirror-rest/monitoring" >> $GITHUB_ENV + # + # - name: Install JDK + # uses: actions/setup-java@v3 + # with: + # distribution: 'temurin' + # java-version: 17 + # + # - name: Authenticate to Google Cloud + # uses: google-github-actions/auth@v1 + # with: + # credentials_json: '${{ secrets.GCR_KEY }}' + # + # - name: Setup gcloud + # uses: google-github-actions/setup-gcloud@v1 + # + # - name: Configure Docker + # run: gcloud auth configure-docker gcr.io,marketplace.gcr.io + # + # - name: Build + # uses: gradle/gradle-build-action@v2 + # if: matrix.module != 'rest' && matrix.module != 'rest-monitor' && matrix.module != 'rosetta' + # with: + # arguments: build -x test + # + # - name: Setup QEMU + # uses: docker/setup-qemu-action@v3 + # + # - name: Setup Docker Buildx + # uses: docker/setup-buildx-action@v3 + # + # - name: Build and push images + # uses: docker/build-push-action@v5 + # with: + # build-args: VERSION=${{env.TAG}} + # cache-from: type=gha + # cache-to: type=gha,mode=max + # context: ${{env.CONTEXT}} + # platforms: linux/amd64, linux/arm64 + # provenance: false + # push: true + # tags: ${{env.IMAGE}}:${{env.TAG}},${{env.IMAGE}}:latest + # + # chart: + # name: Publish charts + # needs: image + # runs-on: ubuntu-latest + # steps: + # - name: Checkout + # uses: actions/checkout@v4 + # + # - name: Publish helm chart + # uses: stefanprodan/helm-gh-pages@v1.7.0 + # with: + # target_dir: charts + # token: ${{ secrets.GITHUB_TOKEN }} marketplace: name: GCP Marketplace release needs: chart - if: "!contains(github.ref, '-')" + #if: "!contains(github.ref, '-')" permissions: id-token: write contents: read @@ -92,7 +93,9 @@ jobs: MPDEV: "/home/runner/mpdev" steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@ + with: + ref: tags/v0.89.0 - name: Authenticate to Google Cloud id: google-auth diff --git a/charts/marketplace/gcp/schema-test.yaml b/charts/marketplace/gcp/schema-test.yaml index cca32c225f3..9a0c241a5d0 100644 --- a/charts/marketplace/gcp/schema-test.yaml +++ b/charts/marketplace/gcp/schema-test.yaml @@ -14,6 +14,12 @@ properties: importer.config.hedera.mirror.importer.network: default: "DEMO" type: string + importer.resources.requests.cpu: + default: "200m" + type: string + importer.resources.requests.memory: + default: "512Mi" + type: string rest.service.type: default: ClusterIP type: string