283 update lightning to fix critical alert #465
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build scpcaTools images | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*" | |
pull_request: | |
branches: | |
- main | |
env: | |
REGISTRY: ghcr.io | |
REGISTRY_USER: alexslemonade | |
jobs: | |
build_push_full: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Docker login | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Docker metadata | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.REGISTRY_USER }}/scpcatools | |
tags: | | |
type=semver,pattern={{raw}} | |
type=edge,branch=main | |
type=ref,event=pr | |
- name: Build full image | |
uses: docker/build-push-action@v5 | |
with: | |
tags: ${{ steps.meta.outputs.tags }} | |
push: ${{ github.event_name == 'push' }} | |
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.REGISTRY_USER }}/scpcatools:buildcache | |
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.REGISTRY_USER }}/scpcatools:buildcache,mode=max | |
build_push_matrix: | |
runs-on: ubuntu-22.04 | |
needs: build_push_full | |
permissions: | |
contents: read | |
packages: write | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- target: slim | |
image_name: scpcatools-slim | |
- target: anndata | |
image_name: scpcatools-anndata | |
- target: scvi | |
image_name: scpcatools-scvi | |
- target: reports | |
image_name: scpcatools-reports | |
- target: seurat | |
image_name: scpcatools-seurat | |
steps: | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Docker login | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Docker metadata | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.REGISTRY_USER }}/${{ matrix.image_name }} | |
tags: | | |
type=semver,pattern={{raw}} | |
type=edge,branch=main | |
- name: Build and push image | |
uses: docker/build-push-action@v5 | |
with: | |
target: ${{ matrix.target }} | |
push: ${{ github.event_name == 'push' }} | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.REGISTRY_USER }}/scpcatools:buildcache |