Skip to content

Commit b693452

Browse files
committed
chore: remove cross archx builds in docker workflow
1 parent 10e6ee6 commit b693452

File tree

3 files changed

+25
-11
lines changed

3 files changed

+25
-11
lines changed

.github/workflows/docker.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
name: Build and Push Docker Image
22

3+
env:
4+
REGISTRY: ghcr.io
5+
IMAGE_NAME: ${{ github.repository_owner }}/hyperlane-init
6+
37
on:
48
push:
59
branches: [ main ]
10+
tags:
11+
- '*'
612
paths:
713
- '**/Dockerfile'
814
- '.github/workflows/docker.yml'
@@ -20,26 +26,33 @@ jobs:
2026
- name: Checkout source
2127
uses: actions/checkout@v5
2228

23-
- name: Set up QEMU
24-
uses: docker/setup-qemu-action@v3
25-
2629
- name: Set up Docker Buildx
2730
uses: docker/setup-buildx-action@v3
28-
with:
29-
install: true
3031

3132
- name: Log in to GitHub Container Registry
3233
uses: docker/login-action@v3
3334
with:
34-
registry: ghcr.io
35+
registry: ${{ env.REGISTRY }}
3536
username: ${{ github.actor }}
3637
password: ${{ secrets.GITHUB_TOKEN }}
3738

38-
- name: Build and push Docker image
39+
- name: Extract Docker metadata
40+
id: meta
41+
uses: docker/metadata-action@v5
42+
with:
43+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
44+
tags: |
45+
type=ref,event=branch
46+
type=ref,event=tag
47+
type=sha
48+
type=raw,value=latest,enable={{is_default_branch}}
49+
50+
- name: Build and push
3951
uses: docker/build-push-action@v6
4052
with:
4153
context: .
4254
file: ./testnet/hyperlane/Dockerfile
55+
platforms: linux/amd64
4356
push: true
44-
platforms: linux/amd64,linux/arm64
45-
tags: ghcr.io/${{ github.repository_owner }}/hyperlane-init:latest
57+
tags: ${{ steps.meta.outputs.tags }}
58+
labels: ${{ steps.meta.outputs.labels }}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ spamoor:
9595

9696
docker-build-hyperlane:
9797
@echo "--> Building hyperlane-init image"
98-
@docker build -t ghcr.io/celestiaorg/hyperlane-init:local -f testnet/hyperlane/Dockerfile .
98+
@docker build --platform linux/amd64 -t ghcr.io/celestiaorg/hyperlane-init:local -f testnet/hyperlane/Dockerfile .
9999
.PHONY: docker-build-hyperlane
100100

101101
deploy-ism:

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ services:
136136
- celestia-zkevm-net
137137

138138
hyperlane-init:
139-
image: ghcr.io/celestiaorg/hyperlane-init:local
139+
image: ghcr.io/celestiaorg/hyperlane-init:main
140+
platform: linux/amd64
140141
container_name: hyperlane-init
141142
volumes:
142143
- ./testnet/hyperlane:/home/hyperlane/

0 commit comments

Comments
 (0)