Skip to content

docker multiarch build of mobilecoind #10

docker multiarch build of mobilecoind

docker multiarch build of mobilecoind #10

Workflow file for this run

name: ci
on:
push:
branches:
- "main"
pull_request:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
REGISTRY_IMAGE: eranrund/temp-mobilecoind
jobs:
docker:
runs-on: [ "ubuntu-latest-m" ]
strategy:
matrix:
network: ["test", "prod"]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}-${{ matrix.network }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
NETWORK=${{ matrix.network }}.mobilecoin.com
#tags: ${{ env.REGISTRY_IMAGE }}:latest