Skip to content

Remove arm64 build

Remove arm64 build #5

---
name: Build Docker image
on:
pull_request:
push:
branches:
- main
tags:
- v*
workflow_dispatch:
env:
FORCE_COLOR: 1
# https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
# only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-test-upload:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout Repo ⚡️
uses: actions/checkout@v4
- name: Login to Container Registry 🔑
uses: docker/login-action@v2
if: ${{ !github.event.pull_request.head.repo.fork }}
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker meta 📝
if: ${{ !github.event.pull_request.head.repo.fork }}
id: meta
uses: docker/metadata-action@v4
with:
images: |
name=ghcr.io/aiidalab/qe
tags: |
type=edge,enable={{is_default_branch}}
type=ref,event=pr
type=match,pattern=v(\d{2}\.\d{2}.\d+.*),group=1
type=raw,value={{tag}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
- name: Build and load to Docker
id: build-upload
uses: docker/build-push-action@v5
with:
tags: ${{ steps.meta.outputs.tags }}
load: ${{ github.event.pull_request.head.repo.fork }}
push: ${{ ! github.event.pull_request.head.repo.fork }}
context: .
platforms: linux/amd64
cache-to: |
type=gha,scope=${{ github.workflow }},mode=min
cache-from: |
type=gha,scope=${{ github.workflow }}
- name: Set Up Python 🐍
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install Dev Dependencies 📦
run: pip install -r requirements-docker.txt