Skip to content

chore(arm builds): use correct docker build env for arm builds #73

chore(arm builds): use correct docker build env for arm builds

chore(arm builds): use correct docker build env for arm builds #73

Workflow file for this run

name: Node.js CI
concurrency:
group: upload-service-${{ github.ref_name }}
cancel-in-progress: true
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
step: ["lint:check", "format:check", "build", "ci"]
steps:
- uses: actions/checkout@v4
- name: Read .nvmrc
id: node_version
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc |cut -c2-8)
- name: Use Node.js ${{ needs.node_version.outputs.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
# Build Typescript
- run: |
yarn
yarn ${{ matrix.step }}
push:
needs: [build]
if: ${{ github.ref == 'refs/heads/PE-6262_arm_builds' }}
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
checks: write
packages: write
steps:
# Prepare the Docker build environment
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- uses: actions/checkout@v4
# Build and push container image to GCR (only on main branch)
- name: Log in to the GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push upload service container image to GitHub Container Registry
uses: docker/build-push-action@v5
with:
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/ardriveapp/${{ github.event.repository.name }}:${{ github.sha }}
- name: Build and push fulfillment container image to GitHub Container Registry
uses: docker/build-push-action@v5
with:
file: Dockerfile.fulfillment
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/ardriveapp/${{ github.event.repository.name }}-fulfillment:${{ github.sha }}
- name: Build and push localstack container image to GitHub Container Registry
uses: docker/build-push-action@v5
with:
file: Dockerfile.localstack
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/ardriveapp/${{ github.event.repository.name }}-localstack:${{ github.sha }}