-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (54 loc) · 1.79 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Build Docker
on:
workflow_dispatch:
push:
branches:
- master
repository_dispatch:
types: [docker]
jobs:
generate:
name: Build Docker
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/bimberlab/rira
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
with:
# Use the previous version of buildx to force docker to save a V1 image,
# since Exacloud's outdated docker version cannot handle V2/OCI:
version: v0.9.1
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PAT }}
- name: Build and push
id: docker_build
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile
build-args: |
"GH_PAT=${{ secrets.PAT }}"
pull: true
push: ${{github.ref == 'refs/heads/master'}}
tags: ghcr.io/bimberlab/rira:nightly,ghcr.io/bimberlab/rira:latest
labels: |
${{ steps.docker_meta.outputs.labels }}
org.opencontainers.image.title=rira
org.opencontainers.image.description=RIRA is an R package for interpreting single-cell RNA-seq data, developed and maintained by the Bimber Lab.