Skip to content

Add staking ABI and address on dev #94

Add staking ABI and address on dev

Add staking ABI and address on dev #94

Workflow file for this run

name: buildpushdev
on:
push:
branches:
- main
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build_test:
# The type of runner that the job will run on
name: buildpushdev
runs-on: self-hosted
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Get short SHA
id: slug
run: echo "::set-output name=sha7::$(echo ${GITHUB_SHA} | cut -c1-7)"
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
file: ./resources/docker/Dockerfile
push: true
tags: dimozone/contract-event-processor:${{ steps.slug.outputs.sha7 }}, dimozone/contract-event-processor:latest
- name: Update Image Version in the worker HelmChart values.yaml
uses: fjogeleit/yaml-update-action@main
with:
valueFile: 'charts/contract-event-processor/values.yaml'
propertyPath: 'image.tag'
value: ${{ steps.slug.outputs.sha7 }}
branch: main
message: 'Update Image Version to ${{ steps.slug.outputs.sha7 }}'
- name: Update Image Version in the worker HelmChart values-goerli.yaml
uses: fjogeleit/yaml-update-action@main
with:
valueFile: 'charts/contract-event-processor/values-goerli.yaml'
propertyPath: 'image.tag'
value: ${{ steps.slug.outputs.sha7 }}
branch: main
message: 'Update Image Version to ${{ steps.slug.outputs.sha7 }}'