Skip to content

Commit

Permalink
feat: also build docker images for arm (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurgeron authored Oct 22, 2024
1 parent c337d51 commit e29e1e6
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 12 deletions.
8 changes: 8 additions & 0 deletions .changeset/eleven-teachers-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@fuel-bridge/fungible-token': patch
'@fuel-bridge/message-predicates': patch
'@fuel-bridge/solidity-contracts': patch
'@fuel-bridge/test-utils': patch
---

Build and publish docker images on arm
60 changes: 48 additions & 12 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build ad publish Docker image
name: Build and publish Docker image

on:
push:
Expand All @@ -14,28 +14,64 @@ concurrency:
cancel-in-progress: true

jobs:
build-and-publish-image:
build-fuel-bridge:
name: Build and Push fuel-bridge Image
runs-on: buildjet-4vcpu-ubuntu-2204
if: |
(github.event_name == 'release' && github.event.action == 'published') ||
github.ref == 'refs/heads/main' || github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3

- name: Build and push a test image containing only the ETH node and contracts
uses: ./.github/actions/docker-publish
id: publish
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
image: ghcr.io/fuellabs/fuel-bridge
dockerfile: docker/l1-chain/Dockerfile

- name: Build and push a test image containing all components for e2e tests
uses: ./.github/actions/docker-publish
id: publish-full
- name: Build and push multi-arch fuel-bridge image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ghcr.io/fuellabs/fuel-bridge:latest
file: docker/l1-chain/Dockerfile
platforms: linux/amd64,linux/arm64

build-fuel-bridge-full:
name: Build and Push fuel-bridge-full Image
runs-on: buildjet-4vcpu-ubuntu-2204
if: |
(github.event_name == 'release' && github.event.action == 'published') ||
github.ref == 'refs/heads/main' || github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
image: ghcr.io/fuellabs/fuel-bridge-full
dockerfile: docker/full-env/Dockerfile

- name: Build and push multi-arch fuel-bridge-full image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ghcr.io/fuellabs/fuel-bridge-full:latest
file: docker/full-env/Dockerfile
platforms: linux/amd64,linux/arm64

0 comments on commit e29e1e6

Please sign in to comment.