From e034d10e15b403e4e4fcc91c4116f944a600775f Mon Sep 17 00:00:00 2001 From: Alexandre Girard Date: Thu, 13 Apr 2023 07:34:19 -0700 Subject: [PATCH] skip some steps --- .../publish-cdk-command-manually.yml | 170 +----------------- 1 file changed, 1 insertion(+), 169 deletions(-) diff --git a/.github/workflows/publish-cdk-command-manually.yml b/.github/workflows/publish-cdk-command-manually.yml index 18343a2d63880..a18f3c6f3e0bf 100644 --- a/.github/workflows/publish-cdk-command-manually.yml +++ b/.github/workflows/publish-cdk-command-manually.yml @@ -57,54 +57,7 @@ jobs: github-token: ${{ env.PAT }} label: ${{ github.run_id }}-publisher - build-cdk: - runs-on: ubuntu-latest - steps: - - uses: actions/setup-python@v4 - with: - python-version: "3.9" - - uses: actions/setup-java@v3 - with: - distribution: "zulu" - java-version: "17" - - name: Checkout Airbyte - uses: actions/checkout@v3 - with: - repository: ${{ github.event.inputs.repo }} - ref: ${{ github.event.inputs.gitref }} - - name: Build CDK Package - run: SUB_BUILD=CDK ./gradlew --no-daemon --no-build-cache :airbyte-cdk:python:build - - name: Post failure to Slack channel dev-connectors-extensibility - if: ${{ failure() }} - uses: slackapi/slack-github-action@v1.23.0 - continue-on-error: true - with: - channel-id: C04J1M66D8B - payload: | - { - "text": "Error during `build-cdk` while publishing Airbyte CDK!", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "Error while publishing Airbyte CDK!" - } - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "See details on \n" - } - } - ] - } - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN_AIRBYTE_TEAM }} - bump-version: - needs: build-cdk if: github.event.inputs.release-type != 'none' runs-on: ubuntu-latest outputs: @@ -128,13 +81,6 @@ jobs: new_version="$(grep -i 'current_version = ' .bumpversion.cfg | sed -e 's/.* = //')" awk -v NEW_VERSION="$new_version" -v CHANGELOG_MESSAGE="${{ github.event.inputs.changelog-message }}" 'NR==3{print "## " NEW_VERSION "\n" CHANGELOG_MESSAGE "\n"}1' CHANGELOG.md > tmp && mv tmp CHANGELOG.md echo NEW_VERSION=$new_version >> $GITHUB_OUTPUT - - name: Commit and Push Changes - uses: stefanzweifel/git-auto-commit-action@v4 - with: - file_pattern: airbyte-cdk/python/setup.py airbyte-cdk/python/.bumpversion.cfg airbyte-cdk/python/CHANGELOG.md airbyte-cdk/python/Dockerfile - commit_message: 🤖 Bump ${{ github.event.inputs.release-type }} version of Airbyte CDK - commit_user_name: Octavia Squidington III - commit_user_email: octavia-squidington-iii@users.noreply.github.com - name: Post failure to Slack channel dev-connectors-extensibility if: ${{ failure() }} uses: slackapi/slack-github-action@v1.23.0 @@ -164,122 +110,9 @@ jobs: env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN_AIRBYTE_TEAM }} - publish-cdk: - needs: bump-version - runs-on: ubuntu-latest - steps: - - name: Checkout Airbyte - uses: actions/checkout@v3 - with: - repository: ${{ github.event.inputs.repo }} - ref: ${{ github.event.inputs.gitref }} - - name: Publish Python Package - uses: mariamrf/py-package-publish-action@v1.1.0 - with: - # specify the same version as in ~/.python-version - python_version: "3.9.11" - pip_version: "21.1" - subdir: "airbyte-cdk/python/" - env: - TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} - TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} - - name: Post failure to Slack channel dev-connectors-extensibility - if: ${{ failure() }} - uses: slackapi/slack-github-action@v1.23.0 - continue-on-error: true - with: - channel-id: C04J1M66D8B - payload: | - { - "text": "Error during `publish-cdk` while publishing Airbyte CDK!", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "Error while publishing Airbyte CDK!" - } - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "See details on \n" - } - } - ] - } - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN_AIRBYTE_TEAM }} - - publish-docker-image: - timeout-minutes: 240 - needs: - - start-publish-docker-image-runner-0 - - publish-cdk - runs-on: runner-pool-${{ github.run_id }} - steps: - - name: Checkout Airbyte - uses: actions/checkout@v3 - with: - repository: airbytehq/airbyte - ref: master - - name: Install Java - uses: actions/setup-java@v3 - with: - distribution: "zulu" - java-version: "17" - - name: Install Python - uses: actions/setup-python@v4 - with: - python-version: "3.9" - - name: Publish source-declarative-manifest - id: publish - env: - DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }} - DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }} - # Oracle expects this variable to be set. Although usually present, this is not set by default on Github virtual runners. - TZ: UTC - uses: Wandalen/wretry.action@master - with: - command: | - docker login -u ${DOCKER_HUB_USERNAME} -p ${DOCKER_HUB_PASSWORD} - ./tools/integrations/manage.sh publish airbyte-cdk/python false - attempt_limit: 3 - attempt_delay: 5000 in # ms - - name: Post failure to Slack channel dev-connectors-extensibility - if: ${{ failure() }} - uses: slackapi/slack-github-action@v1.23.0 - continue-on-error: true - with: - channel-id: C04J1M66D8B - payload: | - { - "text": "Error during `publish-docker-image` while publishing Airbyte CDK!", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "Error while publishing Docker image following Airbyte CDK release!" - } - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "See details on \n" - } - } - ] - } - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN_AIRBYTE_TEAM }} - update-connector-builder: needs: - bump-version - - publish-docker-image runs-on: ubuntu-latest steps: - uses: actions/setup-python@v4 @@ -293,7 +126,7 @@ jobs: - name: Update CDK version run: | PREVIOUS_VERSION=$(cat oss/airbyte-connector-builder-resources/CDK_VERSION) - sed -i "s/${PREVIOUS_VERSION}/${{needs.bump-version.outputs.new_cdk_version}}/g" oss/airbyte-connector-atelier-server/Dockerfile + sed -i "s/${PREVIOUS_VERSION}/0.0.0/g" oss/airbyte-connector-atelier-server/Dockerfile echo ${{needs.bump-version.outputs.new_cdk_version}} > oss/airbyte-connector-builder-resources/CDK_VERSION cd oss/airbyte-connector-builder-server pip install pip-tools @@ -386,7 +219,6 @@ jobs: name: Stop Build EC2 Runner needs: - start-publish-docker-image-runner-0 # required to get output from the start-runner job - - publish-docker-image # required to wait when the main job is done runs-on: ubuntu-latest steps: - name: Configure AWS credentials