Skip to content

feat: add scratch node image build step #2

feat: add scratch node image build step

feat: add scratch node image build step #2

name: build and push image
on:
push:
tags:
- '*'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to ghcr.io
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push fork image
uses: docker/[email protected]
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/lidofinance/hardhat-node:${{ github.ref_name }}
- name: Build and push scratch image
uses: docker/[email protected]
with:
context: .
file: scratch.Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/lidofinance/hardhat-node:${{ github.ref_name }}-scratch