-
Notifications
You must be signed in to change notification settings - Fork 35
63 lines (53 loc) · 1.98 KB
/
docker-build-lab-Single_cell-amd.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
60
61
62
63
name: Build and Push Docker Image for lab single cell
on:
push:
paths:
- 'session_ml/SingleCell/**'
branches:
- OMICSINT_H24
jobs:
build:
runs-on: ubuntu-latest
if: github.repository == 'NBISweden/workshop_omics_integration'
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# Set up Docker Buildx for multi-platform builds
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# Log in to Docker Hub using the secrets
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
# Log in to GitHub Container Registry (GHCR)
- name: Log in to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Build and push the Docker image for both amd64 to Docker Hub
- name: Build and Push Docker Image to Docker Hub
uses: docker/build-push-action@v4
with:
context: ./session_ml/SingleCell
file: session_ml/SingleCell/Dockerfile
platforms: linux/amd64
push: true
no-cache: true
tags: docker.io/rasoolsnbis/omicsint_h24:session_ml_single_cell_amd
# Build and push the Docker image to GitHub Container Registry (GHCR)
- name: Build and Push Docker Image to GHCR
uses: docker/build-push-action@v4
with:
context: ./session_ml/SingleCell
file: session_ml/SingleCell/Dockerfile
platforms: linux/amd64
push: true
no-cache: true
tags: ghcr.io/${{ github.repository_owner }}/omicsint_h24:session_ml_single_cell_amd
- name: Inspect Docker Image
run: docker buildx imagetools inspect docker.io/rasoolsnbis/omicsint_h24:session_ml_single_cell_amd