From 1ef82f3b143340e71ce3344c2e0d07d03069652b Mon Sep 17 00:00:00 2001 From: Sankalp Sanand Date: Tue, 12 Dec 2023 14:13:26 -0500 Subject: [PATCH] fixed some stuff --- .github/workflows/release.yml | 209 +++++++++++++++++----------------- VERSION | 2 +- 2 files changed, 106 insertions(+), 105 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e5722e5c3..8da840aca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,6 +75,7 @@ jobs: runs-on: ubuntu-latest outputs: release: ${{ env.RELEASE }} + needs: version_assigner steps: - name: Check out stable release tag uses: actions/checkout@v4 @@ -150,27 +151,27 @@ jobs: token: ${{ secrets.COVALENT_OPS_BOT_TOKEN }} tag: ${{ env.RELEASE }} prerelease: true - - name: Create stable release - if: >- - github.event.inputs.stable_version - && contains(env.PAUL_BLART, github.actor) - && steps.stable-changelog.outcome == 'success' - && (!github.event.inputs.test_release || github.event.inputs.test_release == 'false') - uses: ncipollo/release-action@v1 - with: - body: ${{ steps.stable-changelog.outputs.message }} - token: ${{ secrets.COVALENT_OPS_BOT_TOKEN }} - tag: ${{ env.RELEASE }} - - name: Alert Slack - if: failure() - uses: rtCamp/action-slack-notify@v2 - env: - SLACK_CHANNEL: "covalent-ci" - SLACK_USERNAME: "CovalentOpsBot" - SLACK_MESSAGE: "The release.yml workflow is failing in ${{ github.ref }}!" - SLACK_COLOR: ${{ job.status }} - SLACK_TITLE: ":warning: Attention Required :warning:" - SLACK_WEBHOOK: ${{ secrets.SLACK_ALERT_WEBHOOK }} + # - name: Create stable release + # if: >- + # github.event.inputs.stable_version + # && contains(env.PAUL_BLART, github.actor) + # && steps.stable-changelog.outcome == 'success' + # && (!github.event.inputs.test_release || github.event.inputs.test_release == 'false') + # uses: ncipollo/release-action@v1 + # with: + # body: ${{ steps.stable-changelog.outputs.message }} + # token: ${{ secrets.COVALENT_OPS_BOT_TOKEN }} + # tag: ${{ env.RELEASE }} + # - name: Alert Slack + # if: failure() + # uses: rtCamp/action-slack-notify@v2 + # env: + # SLACK_CHANNEL: "covalent-ci" + # SLACK_USERNAME: "CovalentOpsBot" + # SLACK_MESSAGE: "The release.yml workflow is failing in ${{ github.ref }}!" + # SLACK_COLOR: ${{ job.status }} + # SLACK_TITLE: ":warning: Attention Required :warning:" + # SLACK_WEBHOOK: ${{ secrets.SLACK_ALERT_WEBHOOK }} pypi: runs-on: ubuntu-latest @@ -247,97 +248,97 @@ jobs: SLACK_TITLE: ":warning: Attention Required :warning:" SLACK_WEBHOOK: ${{ secrets.SLACK_ALERT_WEBHOOK }} - docker: - runs-on: ubuntu-latest - steps: - - name: Check out release tag - uses: actions/checkout@v4 - if: inputs.stable_version - with: - persist-credentials: false - fetch-depth: 0 - ref: "v${{ github.event.inputs.stable_version }}" + # docker: + # runs-on: ubuntu-latest + # steps: + # - name: Check out release tag + # uses: actions/checkout@v4 + # if: inputs.stable_version + # with: + # persist-credentials: false + # fetch-depth: 0 + # ref: "v${{ github.event.inputs.stable_version }}" - - name: Check out master - uses: actions/checkout@v4 - if: inputs.prerelease - with: - persist-credentials: false - fetch-depth: 0 + # - name: Check out master + # uses: actions/checkout@v4 + # if: inputs.prerelease + # with: + # persist-credentials: false + # fetch-depth: 0 - - name: Set up QEMU - uses: docker/setup-qemu-action@master - with: - platforms: "linux/amd64,linux/arm64" + # - name: Set up QEMU + # uses: docker/setup-qemu-action@master + # with: + # platforms: "linux/amd64,linux/arm64" - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@master + # - name: Set up Docker Buildx + # uses: docker/setup-buildx-action@master - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - role-to-assume: ${{ secrets.ECR_PUBLIC_UPLOAD_ROLE }} - aws-region: us-east-1 + # - name: Configure AWS credentials + # uses: aws-actions/configure-aws-credentials@v1 + # with: + # role-to-assume: ${{ secrets.ECR_PUBLIC_UPLOAD_ROLE }} + # aws-region: us-east-1 - - name: Generate metadata - run: | - aws --version - docker info - TAG="$(cat ./VERSION)" - echo "TAG: $TAG" - echo "TAG=$TAG" >> $GITHUB_ENV - BUILD_DATE=`date -u +%Y-%m-%d` - echo "BUILD_DATE=$BUILD_DATE" >> $GITHUB_ENV - BUILD_VERSION=${{ github.sha }} - echo "BUILD_VERSION=$BUILD_VERSION" >> $GITHUB_ENV + # - name: Generate metadata + # run: | + # aws --version + # docker info + # TAG="$(cat ./VERSION)" + # echo "TAG: $TAG" + # echo "TAG=$TAG" >> $GITHUB_ENV + # BUILD_DATE=`date -u +%Y-%m-%d` + # echo "BUILD_DATE=$BUILD_DATE" >> $GITHUB_ENV + # BUILD_VERSION=${{ github.sha }} + # echo "BUILD_VERSION=$BUILD_VERSION" >> $GITHUB_ENV - - name: Login to Public Registry - run: | - aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws + # - name: Login to Public Registry + # run: | + # aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws - - name: Build and push pre-release - if: > - inputs.prerelease - && !inputs.stable_version - && github.event_name == 'schedule' - uses: docker/build-push-action@v2 - with: - builder: ${{ steps.buildx.outputs.name }} - context: . - file: Dockerfile - platforms: linux/amd64 - cache-from: type=gha - cache-to: type=gha,mode=max - build-args: | - BUILD_DATE=${{ env.BUILD_DATE }} - BUILD_VERSION=${{ env.BUILD_VERSION }} - push: true - tags: | - public.ecr.aws/covalent/covalent:latest - public.ecr.aws/covalent/covalent:${{ env.TAG }} + # - name: Build and push pre-release + # if: > + # inputs.prerelease + # && !inputs.stable_version + # && github.event_name == 'schedule' + # uses: docker/build-push-action@v2 + # with: + # builder: ${{ steps.buildx.outputs.name }} + # context: . + # file: Dockerfile + # platforms: linux/amd64 + # cache-from: type=gha + # cache-to: type=gha,mode=max + # build-args: | + # BUILD_DATE=${{ env.BUILD_DATE }} + # BUILD_VERSION=${{ env.BUILD_VERSION }} + # push: true + # tags: | + # public.ecr.aws/covalent/covalent:latest + # public.ecr.aws/covalent/covalent:${{ env.TAG }} - - name: Build and push stable release - if: > - github.event_name == 'workflow_dispatch' - && inputs.stable_version - && !inputs.prerelease - && !github.events.inputs.test_release - && contains(env.PAUL_BLART, github.actor) - uses: docker/build-push-action@v2 - with: - builder: ${{ steps.buildx.outputs.name }} - context: . - file: Dockerfile - platforms: linux/amd64 - cache-from: type=gha - cache-to: type=gha,mode=max - build-args: | - BUILD_DATE=${{ env.BUILD_DATE }} - BUILD_VERSION=${{ env.BUILD_VERSION }} - push: true - tags: | - public.ecr.aws/covalent/covalent:${{ inputs.stable_version }} - public.ecr.aws/covalent/covalent:stable + # - name: Build and push stable release + # if: > + # github.event_name == 'workflow_dispatch' + # && inputs.stable_version + # && !inputs.prerelease + # && !github.events.inputs.test_release + # && contains(env.PAUL_BLART, github.actor) + # uses: docker/build-push-action@v2 + # with: + # builder: ${{ steps.buildx.outputs.name }} + # context: . + # file: Dockerfile + # platforms: linux/amd64 + # cache-from: type=gha + # cache-to: type=gha,mode=max + # build-args: | + # BUILD_DATE=${{ env.BUILD_DATE }} + # BUILD_VERSION=${{ env.BUILD_VERSION }} + # push: true + # tags: | + # public.ecr.aws/covalent/covalent:${{ inputs.stable_version }} + # public.ecr.aws/covalent/covalent:stable # docker_aws_plugins: # name: Trigger AWS Plugins Base Executor Image Pre-Release diff --git a/VERSION b/VERSION index d650039e6..3379c667f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.232.0-rc.0 \ No newline at end of file +0.233.0-rc.0