Skip to content

fix: unsupport web3_clientVersion method (#26) #138

fix: unsupport web3_clientVersion method (#26)

fix: unsupport web3_clientVersion method (#26) #138

name: release-image-ECR
on:
push:
branches:
- chainbase
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get version
id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
- name: Checkout repository
uses: actions/checkout@v2
- name: Login to ACR
uses: aliyun/acr-login@v1
with:
login-server: https://${{ secrets.ALI_LOGIN_SERVER }}
region-id: ${{ secrets.ALI_REGION_ID }}
access-key-id: ${{ secrets.ALI_ACCESS_KEY_ID }}
access-key-secret: ${{ secrets.ALI_ACCESS_KEY_SECRET }}
instance-id: ${{ secrets.ALI_INSTANCE_ID }}
- name: Build and push to AliCloud
env:
ECR_REGISTRY: ${{ secrets.ALI_LOGIN_SERVER }}/${{ secrets.ALI_REGISTRY }}
ECR_REPOSITORY: ethereum-etl
IMAGE_TAG: ${{ steps.get_version.outputs.VERSION }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG