Skip to content

Commit

Permalink
Improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gabmontes committed Dec 30, 2024
1 parent d30323a commit c7b03e9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-repo/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ inputs:
docker-image:
description: 'Docker image'
required: true
default: blockscout/blockscout
default: hemilabs/blockscout
outputs:
docker-builder:
description: 'Docker builder'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- production-filecoin
- production-fuse
- production-optimism
- production-optimism-stg # Hemi default branch
- production-hemi # Hemi default branch
- production-immutable
- production-iota
- production-lukso
Expand All @@ -29,7 +29,7 @@ on:
pull_request:
types: [opened, synchronize, reopened, labeled]
branches:
- production-hemi
- master

env:
MIX_ENV: test
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/publish-docker-image-every-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish Docker image on every push to default branch
on:
push:
branches:
- production-optimism-stg # Hemi default branch
- production-hemi # Hemi default branch
workflow_dispatch:

env:
Expand Down Expand Up @@ -55,14 +55,15 @@ jobs:
AMPLITUDE_API_KEY=
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta.+commit.${{ env.SHORT_SHA }}
RELEASE_VERSION=${{ env.RELEASE_VERSION }}
CHAIN_TYPE=optimism
- name: Build and push Docker image (indexer)
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/Dockerfile
push: true
tags: blockscout/blockscout:${{ env.RELEASE_VERSION }}.commit.${{ env.SHORT_SHA }}-indexer
tags: hemilabs/blockscout:${{ env.RELEASE_VERSION }}.commit.${{ env.SHORT_SHA }}-indexer
labels: ${{ steps.setup.outputs.docker-labels }}
platforms: |
linux/amd64
Expand All @@ -89,7 +90,7 @@ jobs:
context: .
file: ./docker/Dockerfile
push: true
tags: blockscout/blockscout:${{ env.RELEASE_VERSION }}.commit.${{ env.SHORT_SHA }}-api
tags: hemilabs/blockscout:${{ env.RELEASE_VERSION }}.commit.${{ env.SHORT_SHA }}-api
labels: ${{ steps.setup.outputs.docker-labels }}
platforms: |
linux/amd64
Expand Down Expand Up @@ -133,6 +134,8 @@ jobs:
SESSION_COOKIE_DOMAIN=k8s-dev.blockscout.com
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta.+commit.${{ env.SHORT_SHA }}
RELEASE_VERSION=${{ env.RELEASE_VERSION }}
CHAIN_TYPE=optimism
deploy_e2e:
needs: push_to_registry
runs-on: ubuntu-latest
Expand Down Expand Up @@ -162,7 +165,7 @@ jobs:
client_payload: '{ "instance": "dev", "globalEnv": "e2e"}'
# This job tries to deploy the new built images to k8s. But we don't have
# such setup in the Hemi setup. Disabling instead of deleting to keep this
# as referenence for potential future improvements.
# as reference for potential future improvements.
if: false
test:
needs: deploy_e2e
Expand All @@ -173,5 +176,5 @@ jobs:
id-token: write
# This job tries to run tests in the deployed k8s setup. But we don't have
# such setup in the Hemi setup. Disabling instead of deleting to keep this
# as referenence for potential future improvements.
# as reference for potential future improvements.
if: false

0 comments on commit c7b03e9

Please sign in to comment.