Skip to content

Commit 5cdca67

Browse files
committed
Merge branch 'develop' into 7000-mpconfig-fqdn
2 parents 82a33e4 + 2be92f3 commit 5cdca67

25 files changed

Lines changed: 1430 additions & 141 deletions

File tree

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
---
2+
name: Container Base Module
3+
4+
on:
5+
push:
6+
branches:
7+
- 'develop'
8+
- 'master'
9+
paths:
10+
- 'modules/container-base/**'
11+
- 'modules/dataverse-parent/pom.xml'
12+
- '.github/workflows/container_base_push.yml'
13+
pull_request:
14+
branches:
15+
- 'develop'
16+
- 'master'
17+
paths:
18+
- 'modules/container-base/**'
19+
- 'modules/dataverse-parent/pom.xml'
20+
- '.github/workflows/container_base_push.yml'
21+
22+
env:
23+
IMAGE_TAG: unstable
24+
REGISTRY: docker.io
25+
26+
jobs:
27+
build:
28+
name: Build image
29+
runs-on: ubuntu-latest
30+
permissions:
31+
contents: read
32+
packages: read
33+
strategy:
34+
matrix:
35+
jdk: [ '11' ]
36+
# Only run in upstream repo - avoid unnecessary runs in forks
37+
if: ${{ github.repository_owner == 'IQSS' }}
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
42+
43+
- name: Set up JDK ${{ matrix.jdk }}
44+
uses: actions/setup-java@v3
45+
with:
46+
java-version: ${{ matrix.jdk }}
47+
distribution: 'adopt'
48+
- name: Cache Maven packages
49+
uses: actions/cache@v3
50+
with:
51+
path: ~/.m2
52+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
53+
restore-keys: ${{ runner.os }}-m2
54+
55+
- name: Build base container image with local architecture
56+
run: mvn -f modules/container-base -Pct package
57+
58+
# Run anything below only if this is not a pull request.
59+
# Accessing, pushing tags etc. to DockerHub will only succeed in upstream because secrets.
60+
61+
- if: ${{ github.event_name == 'push' && github.ref_name == 'develop' }}
62+
name: Push description to DockerHub
63+
uses: peter-evans/dockerhub-description@v3
64+
with:
65+
username: ${{ secrets.DOCKERHUB_USERNAME }}
66+
password: ${{ secrets.DOCKERHUB_TOKEN }}
67+
repository: gdcc/base
68+
short-description: "Dataverse Base Container image providing Payara application server and optimized configuration"
69+
readme-filepath: ./modules/container-base/README.md
70+
71+
- if: ${{ github.event_name != 'pull_request' }}
72+
name: Log in to the Container registry
73+
uses: docker/login-action@v2
74+
with:
75+
registry: ${{ env.REGISTRY }}
76+
username: ${{ secrets.DOCKERHUB_USERNAME }}
77+
password: ${{ secrets.DOCKERHUB_TOKEN }}
78+
- if: ${{ github.event_name != 'pull_request' }}
79+
name: Set up QEMU for multi-arch builds
80+
uses: docker/setup-qemu-action@v2
81+
- name: Re-set image tag based on branch
82+
if: ${{ github.ref_name == 'master' }}
83+
run: echo "IMAGE_TAG=stable"
84+
- if: ${{ github.event_name != 'pull_request' }}
85+
name: Deploy multi-arch base container image to Docker Hub
86+
run: mvn -f modules/container-base -Pct deploy -Dbase.image.tag=${{ env.IMAGE_TAG }} -Ddocker.registry=${{ env.REGISTRY }}

.github/workflows/shellcheck.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Shellcheck"
2+
on:
3+
push:
4+
paths:
5+
- conf/solr/**
6+
- modules/container-base/**
7+
pull_request:
8+
paths:
9+
- conf/solr/**
10+
- modules/container-base/**
11+
jobs:
12+
shellcheck:
13+
name: Shellcheck
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: shellcheck
18+
uses: reviewdog/action-shellcheck@v1
19+
with:
20+
github_token: ${{ secrets.github_token }}
21+
reporter: github-pr-review # Change reporter.
22+
fail_on_error: true
23+
# Container base image uses dumb-init shebang, so nail to using bash
24+
shellcheck_flags: "--shell=bash --external-sources"

.github/workflows/shellspec.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,6 @@ on:
1313
env:
1414
SHELLSPEC_VERSION: 0.28.1
1515
jobs:
16-
shellcheck:
17-
name: Shellcheck
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v2
21-
- name: shellcheck
22-
uses: reviewdog/action-shellcheck@v1
23-
with:
24-
github_token: ${{ secrets.github_token }}
25-
reporter: github-pr-review # Change reporter.
26-
fail_on_error: true
27-
exclude: "./tests/shell/*"
2816
shellspec-ubuntu:
2917
name: "Ubuntu"
3018
runs-on: ubuntu-latest

doc/sphinx-guides/requirements.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
# current version as of this writing
2-
Sphinx==3.5.4
1+
# Developers, please use Python 3.9 or lower to build the guides.
2+
# For your convenience, a solution for Python 3.10 is provided below
3+
# but we would prefer that you use the same version of Sphinx
4+
# (below on the < 3.10 line) that is used to build the production guides.
5+
Sphinx==3.5.4 ; python_version < '3.10'
6+
Sphinx==5.3.0 ; python_version >= '3.10'
7+
38
# Necessary workaround for ReadTheDocs for Sphinx 3.x - unnecessary as of Sphinx 4.5+
49
Jinja2>=3.0.2,<3.1
510

0 commit comments

Comments
 (0)