Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Merge pull request #380 from specifysystems/points-to-matrix #495

Merge pull request #380 from specifysystems/points-to-matrix

Merge pull request #380 from specifysystems/points-to-matrix #495

Workflow file for this run

# Push docker image to the container registry and dockerhub
# See: https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
name: Publish Docker image
on:
push
jobs:
push_to_registries:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log into Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log into container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker metadata.
id: meta
uses: docker/metadata-action@v4
with:
images: |
specifyconsortium/specify-lmpy
ghcr.io/${{ github.repository }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=pep440,pattern={{version}}
- name: Build and push Docker images
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}