File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Manual deploy R builder
2+ on :
3+ workflow_dispatch :
4+
5+ jobs :
6+ build :
7+ uses : opencb/java-common-libs/.github/workflows/build-java-app-workflow.yml@develop
8+ with :
9+ maven_opts : -Phdp3.1,RClient -Dopencga.war.name=opencga -Dcheckstyle.skip
10+
11+
12+ build-and-push-docker :
13+ runs-on : ubuntu-latest
14+ needs : build
15+ steps :
16+ - name : Checkout repository
17+ uses : actions/checkout@v4
18+
19+ - uses : actions/download-artifact@v4
20+ with :
21+ name : ${{ inputs.build_folder }}
22+ path : build
23+
24+ - name : Set up Docker Buildx
25+ uses : docker/setup-buildx-action@v3
26+
27+ - name : Log in to Docker Hub
28+ uses : docker/login-action@v3
29+ with :
30+ username : ${{ secrets.DOCKER_HUB_USER }}
31+ password : ${{ secrets.DOCKER_HUB_PASSWORD }}
32+ logout : true
33+
34+ - name : Extract Docker image tag from project version
35+ id : version
36+ run : |
37+ TAG=$(grep 'Version:' build/clients/R/DESCRIPTION | cut -d' ' -f2)
38+ echo "version=$TAG" >> $GITHUB_OUTPUT
39+
40+ - name : Build and push Docker image
41+ uses : docker/build-push-action@v5
42+ with :
43+ context : .
44+ push : true
45+ tags : |
46+ opencb/opencga-r-builder:latest
47+ opencb/opencga-r-builder:${{ steps.version.outputs.version }}
48+
You can’t perform that action at this time.
0 commit comments