Skip to content

Merge pull request #89 from geneontology/update_golr_url #22

Merge pull request #89 from geneontology/update_golr_url

Merge pull request #89 from geneontology/update_golr_url #22

Workflow file for this run

name: Build Docker Image
on:
push:
tags:
- "v*"
jobs:
docker:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Docker metadata
uses: docker/metadata-action@v4
id: meta
with:
images: geneontology/go-fastapi
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: smoxon
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64/v8
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}