Skip to content

Merge pull request #4 from lidofinance/feat/hardhat-2.22.14 #4

Merge pull request #4 from lidofinance/feat/hardhat-2.22.14

Merge pull request #4 from lidofinance/feat/hardhat-2.22.14 #4

name: build and push image
on:
push:
tags:
- '*'
permissions:
contents: read
packages: write
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