Skip to content

Commit e466c0b

Browse files
committed
build app on push to main
1 parent 3db8a15 commit e466c0b

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/docker.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build and Push Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
env:
10+
DOCKER_IMAGE: icrsc/nextflow-app
11+
12+
jobs:
13+
docker:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
22+
- name: Login to Docker Hub
23+
uses: docker/login-action@v3
24+
with:
25+
username: ${{ secrets.DOCKERHUB_USERNAME }}
26+
password: ${{ secrets.DOCKERHUB_TOKEN }}
27+
28+
- name: Build and push
29+
uses: docker/build-push-action@v5
30+
with:
31+
context: .
32+
push: true
33+
tags: |
34+
${{ env.DOCKER_IMAGE }}:latest
35+
${{ env.DOCKER_IMAGE }}:${{ github.sha }}
36+
37+
- name: Image digest
38+
run: echo ${{ steps.docker_build.outputs.digest }}

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pandas==2.2.3
22
paramiko==3.5.0
33
streamlit==1.39.0
4+
pre-commit==4.0.1

0 commit comments

Comments
 (0)