Skip to content

Commit 92c706a

Browse files
committed
Merge branch 'develop' into TASK-7610
2 parents bc98662 + fc543f0 commit 92c706a

14 files changed

+65
-15
lines changed

.github/workflows/build-java-app-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
jobs:
1919
build-workflow:
2020
name: Build Java app
21-
runs-on: ubuntu-22.04
21+
runs-on: ${{ vars.UBUNTU_VERSION }}
2222
outputs:
2323
version: ${{ steps.get_project_version.outputs.version }}
2424
steps:

.github/workflows/delete-docker-hub-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
jobs:
1616
delete-docker-hub:
1717
name: Delete Docker Hub image
18-
runs-on: ubuntu-22.04
18+
runs-on: ${{ vars.UBUNTU_VERSION }}
1919
steps:
2020
- uses: docker/login-action@v2
2121
with:

.github/workflows/deploy-docker-hub-workflow.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Reusable workflow to push in DockerHub
1+
name: Reusable workflow to push in opencb DockerHub
22

33
on:
44
workflow_call:
@@ -25,7 +25,7 @@ on:
2525
jobs:
2626
deploy-docker-hub:
2727
name: Push Docker image
28-
runs-on: ubuntu-22.04
28+
runs-on: ${{ vars.UBUNTU_VERSION }}
2929
steps:
3030
- name: "Checkout optional repo"
3131
uses: actions/checkout@v4
@@ -43,5 +43,6 @@ jobs:
4343
with:
4444
username: ${{ secrets.DOCKER_HUB_USER }}
4545
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
46+
logout: true
4647
- name: Deploy in Docker Hub
47-
run: ${{ inputs.cli }}
48+
run: ${{ inputs.cli }} --org opencb

.github/workflows/deploy-maven-repository-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
jobs:
1616
deploy-workflow:
1717
name: Deploy to Maven and GitHub Packages
18-
runs-on: ubuntu-22.04
18+
runs-on: ${{ vars.UBUNTU_VERSION }}
1919
steps:
2020
- uses: actions/checkout@v4
2121
with:

.github/workflows/deploy-python-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
jobs:
1919
pypi:
2020
name: Deploy Python package in PyPI
21-
runs-on: ubuntu-22.04
21+
runs-on: ${{ vars.UBUNTU_VERSION }}
2222
steps:
2323
- uses: actions/download-artifact@v4
2424
if: ${{ inputs.artifact }}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Reusable workflow to push in DockerHub
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
cli:
7+
type: string
8+
required: true
9+
repository:
10+
type: string
11+
required: false
12+
branch:
13+
type: string
14+
required: false
15+
build_folder:
16+
type: string
17+
required: false
18+
default: "build-folder"
19+
secrets:
20+
DOCKER_HUB_USER:
21+
required: true
22+
DOCKER_HUB_PASSWORD:
23+
required: true
24+
25+
jobs:
26+
deploy-docker-hub:
27+
name: Push Docker image
28+
runs-on: ubuntu-22.04
29+
steps:
30+
- name: "Checkout optional repo"
31+
uses: actions/checkout@v4
32+
if: inputs.repository != '' && inputs.branch != ''
33+
with:
34+
repository: ${{ inputs.repository }}
35+
ref: ${{ inputs.branch }}
36+
- uses: actions/download-artifact@v4
37+
with:
38+
name: ${{ inputs.build_folder }}
39+
path: build
40+
- name: Chmod
41+
run: "find build -regex '.*sh' | while read file ; do chmod u+x $file ; done"
42+
- uses: docker/login-action@v3
43+
with:
44+
username: ${{ secrets.ZETTA_DOCKER_HUB_USER }}
45+
password: ${{ secrets.ZETTA_DOCKER_HUB_PASSWORD }}
46+
logout: true
47+
- name: Deploy in Docker Hub
48+
run: ${{ inputs.cli }} --org zettagenomics
49+

.github/workflows/manual-deploy-maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
checkout:
1212
name: Build Java app
13-
runs-on: ubuntu-22.04
13+
runs-on: ${{ vars.UBUNTU_VERSION }}
1414
steps:
1515
- uses: actions/checkout@v4
1616
with:

.github/workflows/publish-test-report-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222
jobs:
2323
publish-test-report:
2424
name: Publish test report
25-
runs-on: ubuntu-22.04
25+
runs-on: ${{ vars.UBUNTU_VERSION }}
2626
steps:
2727
- uses: actions/download-artifact@v4
2828
with:

.github/workflows/pull-request-approved.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
calculate-xetabase-branch:
1010
if: github.event.review.state == 'approved'
1111
name: Calculate Xetabase branch
12-
runs-on: ubuntu-22.04
12+
runs-on: ${{ vars.UBUNTU_VERSION }}
1313
outputs:
1414
xetabase_branch: ${{ steps.get_xetabase_branch.outputs.xetabase_branch }}
1515
steps:

.github/workflows/release-github-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
jobs:
1414
release-workflow:
1515
name: Create GitHub Release
16-
runs-on: ubuntu-22.04
16+
runs-on: ${{ vars.UBUNTU_VERSION }}
1717
steps:
1818
- uses: actions/download-artifact@v4
1919
if: ${{ inputs.artifact }}

0 commit comments

Comments
 (0)