Skip to content

Commit b83f5af

Browse files
committed
Added workflow
1 parent 3513894 commit b83f5af

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Build dockerfile on change
2+
name: Build Docker (env/gcta.Dockerfile)
3+
4+
on:
5+
push:
6+
paths:
7+
- 'env/gcta.Dockerfile'
8+
- 'env/gcta_conda.yml'
9+
- '.github/workflows/build_gcta_docker.yml'
10+
pull_request:
11+
paths:
12+
- 'env/gcta.Dockerfile'
13+
- 'env/gcta_conda.yml'
14+
- '.github/workflows/build_gcta_docker.yml'
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
# Build Tools
23+
- name: Build and Publish
24+
uses: elgohr/Publish-Docker-Github-Action@master
25+
with:
26+
name: andersenlab/gcta
27+
tag: "${{ steps.current-time.formattedTime }}"
28+
username: ${{ secrets.KSE_DOCKER_USER }}
29+
password: ${{ secrets.KSE_DOCKER_PASS }}
30+
snapshot: true
31+
dockerfile: gcta.Dockerfile
32+
workdir: "env"
33+
tags: "latest"
34+
cache: true

0 commit comments

Comments
 (0)