forked from combiz/scFlow
-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (43 loc) · 1.22 KB
/
workflow_master.yaml
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
name: R GitHub Actions dev-nf
on:
push:
branches:
- master
- nfancy-patch-1
jobs:
R-CMD-check:
name: R-CMD-check
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
RGL_USE_NULL: TRUE
steps:
- uses: actions/checkout@v3
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
install-r: false
- name: Get R package version
run: |
version=$(grep Version DESCRIPTION | grep -o "[0-9.]\+")
echo "packageVersion=${version}" >> $GITHUB_ENV
shell: bash {0}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
uses: docker/build-push-action@v4
with:
load: true
file: ./Dockerfile
tags: |
nfancy/scflow:latest
nfancy/scflow:${{ env.packageVersion }}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: push service
run: |
docker push nfancy/scflow:latest
docker push nfancy/scflow:${{ env.packageVersion }}