Skip to content

Merge pull request #235 from AlexsLemonade/allyhawkins/single-gene-si… #302

Merge pull request #235 from AlexsLemonade/allyhawkins/single-gene-si…

Merge pull request #235 from AlexsLemonade/allyhawkins/single-gene-si… #302

Workflow file for this run

name: Build scpca-tools image
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: alexslemonade/scpca-tools
jobs:
build_and_push:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker login
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{raw}}
type=edge,branch=main
- uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:docker"
push: ${{ github.event_name == 'push' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha