Skip to content

Allow orcidLinkedIdentityByOrcid to accept sandbox- prefixed ORCID iDs #235

Allow orcidLinkedIdentityByOrcid to accept sandbox- prefixed ORCID iDs

Allow orcidLinkedIdentityByOrcid to accept sandbox- prefixed ORCID iDs #235

name: Build Docker Image (and push to registry if main or staging)
on:
push:
pull_request:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Setup buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKER_USERNAME }}/graphql-api
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile.dockerhub
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/arm64,linux/amd64