forked from hapifhir/hapi-fhir-jpaserver-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from opensrp/update_the_hapi_fhir_version
Update the hapi fhir version
- Loading branch information
Showing
19 changed files
with
468 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
debug: true | ||
remote: origin | ||
chart-yaml-schema: .github/ct/chart-schema.yaml | ||
validate-maintainers: false | ||
validate-chart-schema: true | ||
validate-yaml: true | ||
check-version-increment: true | ||
chart-dirs: | ||
- charts | ||
helm-extra-args: --timeout 300s | ||
upgrade: true | ||
skip-missing-values: true | ||
release-label: release | ||
chart-repos: | ||
- bitnami=https://charts.bitnami.com/bitnami | ||
release-name-template: "helm-v{{ .Version }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: Build Container Images | ||
|
||
on: | ||
push: | ||
tags: | ||
- "image/v*" | ||
paths-ignore: | ||
- "charts/**" | ||
pull_request: | ||
branches: [master] | ||
paths-ignore: | ||
- "charts/**" | ||
env: | ||
IMAGES: docker.io/hapiproject/hapi | ||
PLATFORMS: linux/amd64,linux/arm64/v8 | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Docker meta | ||
id: docker_meta | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: ${{ env.IMAGES }} | ||
tags: | | ||
type=match,pattern=image-(.*),group=1,enable=${{github.event_name != 'pull_request'}} | ||
type=sha | ||
- name: Docker distroless meta | ||
id: docker_distroless_meta | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: ${{ env.IMAGES }} | ||
tags: | | ||
type=match,pattern=image-(.*),group=1,enable=${{github.event_name != 'pull_request'}} | ||
type=sha | ||
flavor: | | ||
suffix=-distroless,onlatest=true | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
if: github.event_name != 'pull_request' | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Cache Docker layers | ||
uses: actions/cache@v2 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-buildx- | ||
- name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.docker_meta.outputs.tags }} | ||
labels: ${{ steps.docker_meta.outputs.labels }} | ||
platforms: ${{ env.PLATFORMS }} | ||
|
||
- name: Build and push distroless | ||
id: docker_build_distroless | ||
uses: docker/build-push-action@v2 | ||
with: | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.docker_distroless_meta.outputs.tags }} | ||
labels: ${{ steps.docker_distroless_meta.outputs.labels }} | ||
platforms: ${{ env.PLATFORMS }} | ||
target: release-distroless |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Release Charts | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "charts/**" | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Install Helm | ||
uses: azure/setup-helm@v1 | ||
with: | ||
version: v3.7.0 | ||
|
||
- name: Add bitnami repo | ||
run: helm repo add bitnami https://charts.bitnami.com/bitnami | ||
|
||
- name: Update dependencies | ||
run: find charts/ ! -path charts/ -maxdepth 1 -type d -exec helm dependency update {} \; | ||
|
||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
with: | ||
config: .github/ct/config.yaml | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Lint and Test Charts | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- "charts/**" | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-20.04 | ||
container: quay.io/helmpack/chart-testing:v3.4.0 | ||
steps: | ||
- name: Install helm-docs | ||
working-directory: /tmp | ||
env: | ||
HELM_DOCS_URL: https://github.com/norwoodj/helm-docs/releases/download/v1.5.0/helm-docs_1.5.0_Linux_x86_64.tar.gz | ||
run: | | ||
curl -LSs $HELM_DOCS_URL | tar xz && \ | ||
mv ./helm-docs /usr/local/bin/helm-docs && \ | ||
chmod +x /usr/local/bin/helm-docs && \ | ||
helm-docs --version | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Check if documentation is up-to-date | ||
run: helm-docs && git diff --exit-code HEAD | ||
|
||
- name: Run chart-testing (lint) | ||
run: ct lint --config .github/ct/config.yaml | ||
|
||
test: | ||
runs-on: ubuntu-20.04 | ||
needs: | ||
- lint | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Helm | ||
uses: azure/setup-helm@v1 | ||
with: | ||
version: v3.7.0 | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed --config .github/ct/config.yaml) | ||
if [[ -n "$changed" ]]; then | ||
echo "::set-output name=changed::true" | ||
fi | ||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
if: steps.list-changed.outputs.changed == 'true' | ||
|
||
- name: Run chart-testing (install) | ||
run: ct install --config .github/ct/config.yaml | ||
if: steps.list-changed.outputs.changed == 'true' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
dependencies: | ||
- name: postgresql | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 10.3.16 | ||
digest: sha256:a45816f0855c6d4b1d66384ac36db99e0378f24663d02791006f815ff9d49245 | ||
generated: "2021-04-09T15:11:17.790703505Z" | ||
version: 10.12.2 | ||
digest: sha256:38ee315eae1af3e3f6eb20e1dd8ffd60d4ab7ee0c51bf26941b56c8bcb376c11 | ||
generated: "2021-10-07T00:19:18.9743522+02:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.