-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (22 loc) · 874 Bytes
/
CI_docker.yml
File metadata and controls
27 lines (22 loc) · 874 Bytes
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
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
name: build-docker
jobs:
checkout:
env:
GIT_CLONE_TOKEN: ${{ secrets.GH_PAT }}
REPOSITORY_NAME: "tinytest2JUnit"
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Build an image
run: |
docker build -t 'tinytest2junit' .
docker run --workdir /workspace -v "$PWD:/workspace" -d --name app tinytest2junit cat -
docker exec app R -q -e 'roxygen2::roxygenize("tinytest2JUnit")' # command will be executed in the container in the /workspace directory (containing your repository)
docker exec -it app R CMD build tinytest2JUnit
docker cp app:/workspace/my_ouptput.txt .