From c02d076012e046b5824118229908997b4c625294 Mon Sep 17 00:00:00 2001 From: JOY <5027251+JOY@users.noreply.github.com> Date: Mon, 3 Aug 2026 20:53:22 +0700 Subject: [PATCH] ci: remove obsolete Blockscout image workflows --- .github/workflows/deploy-main.yml | 37 --------- .github/workflows/publish-image.yml | 117 ---------------------------- 2 files changed, 154 deletions(-) delete mode 100644 .github/workflows/deploy-main.yml delete mode 100644 .github/workflows/publish-image.yml diff --git a/.github/workflows/deploy-main.yml b/.github/workflows/deploy-main.yml deleted file mode 100644 index b09a0c2d39..0000000000 --- a/.github/workflows/deploy-main.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Deploy from main branch - -on: - # NOTE: Currently disabled to avoid unnecessary deployments since we only publish private images and do not use unstable builds in our internal pipelines. - # push: - # branches: - # - main - # paths-ignore: - # - '.github/ISSUE_TEMPLATE/**' - # - '.husky/**' - # - '.vscode/**' - # - 'docs/**' - # - 'vitest/**' - # - 'mocks/**' - # - 'playwright/**' - # - 'stubs/**' - # - 'tools/**' - workflow_dispatch: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - contents: read - packages: write - -jobs: - publish_image: - name: Publish Docker image - uses: './.github/workflows/publish-image.yml' - secrets: inherit - with: - tags: | - type=ref,event=branch - type=raw,value=unstable - platforms: linux/amd64 diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml deleted file mode 100644 index 4ec4d89e03..0000000000 --- a/.github/workflows/publish-image.yml +++ /dev/null @@ -1,117 +0,0 @@ -name: Publish Docker image - -on: - workflow_dispatch: - inputs: - tags: - description: Image tags (e.g. "type=raw,value=foo") - required: false - type: string - build_args: - description: Build-time variables - required: false - type: string - platforms: - description: Image platforms (you can specify multiple platforms separated by comma) - required: false - type: string - default: linux/amd64,linux/arm64/v8 - private: - description: Make image private (true) or public (false) - required: false - type: boolean - default: true - workflow_call: - inputs: - tags: - description: Image tags (e.g. "type=raw,value=foo") - required: false - type: string - build_args: - description: Build-time variables - required: false - type: string - platforms: - description: Image platforms (you can specify multiple platforms separated by comma) - required: false - type: string - default: linux/amd64,linux/arm64/v8 - private: - description: Make image private (true) or public (false) - required: false - type: boolean - default: true - -permissions: - contents: read - packages: write - -jobs: - run: - name: Run - runs-on: build - steps: - - name: Check out the repo - uses: actions/checkout@v4 - - - name: Set image name based on private flag - id: image-name - run: | - if [ "${{ inputs.private }}" = "true" ]; then - echo "image-name=ghcr.io/blockscout/frontend-private" >> $GITHUB_OUTPUT - else - echo "image-name=ghcr.io/blockscout/frontend" >> $GITHUB_OUTPUT - fi - - # Will automatically make nice tags, see the table here https://github.com/docker/metadata-action#basic - - name: Docker meta - id: meta - uses: docker/metadata-action@v5 - with: - images: ${{ steps.image-name.outputs.image-name }} - flavor: | - latest=false - tags: | - type=ref,event=tag - ${{ inputs.tags }} - - - name: Add SHORT_SHA env property with commit short sha - run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV - - - name: Debug - env: - REF_TYPE: ${{ github.ref_type }} - REF_NAME: ${{ github.ref_name }} - IMAGE_NAME: ${{ steps.image-name.outputs.image-name }} - IS_PRIVATE: ${{ inputs.private }} - run: | - echo "ref_type: $REF_TYPE" - echo "ref_name: $REF_NAME" - echo "image_name: $IMAGE_NAME" - echo "is_private: $IS_PRIVATE" - - - name: Setup repo - uses: blockscout/actions/.github/actions/setup-multiarch-buildx@no-metadata - id: setup - with: - docker-image: ${{ steps.image-name.outputs.image-name }} - docker-username: ${{ github.actor }} - docker-password: ${{ secrets.GITHUB_TOKEN }} - docker-remote-multi-platform: true - docker-arm-host: ${{ secrets.ARM_RUNNER_HOSTNAME }} - docker-arm-host-key: ${{ secrets.ARM_RUNNER_KEY }} - - - name: Build and push - uses: docker/build-push-action@v5 - with: - context: . - file: ./Dockerfile - push: true - cache-from: type=gha - tags: ${{ steps.meta.outputs.tags }} - platforms: ${{ inputs.platforms }} - labels: ${{ steps.meta.outputs.labels }} - build-args: | - GIT_COMMIT_SHA=${{ env.SHORT_SHA }} - GIT_TAG=${{ github.ref_type == 'tag' && github.ref_name || '' }} - ${{ inputs.build_args }}