-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
16 changed files
with
220 additions
and
112 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
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
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,26 @@ | ||
[ | ||
{ | ||
"folder": "waltid-services/waltid-issuer-api", | ||
"image": "issuer-api" | ||
}, | ||
{ | ||
"folder": "waltid-services/waltid-verifier-api", | ||
"image": "verifier-api" | ||
}, | ||
{ | ||
"folder": "waltid-services/waltid-wallet-api", | ||
"image": "wallet-api" | ||
}, | ||
{ | ||
"folder": "waltid-applications/waltid-web-wallet/apps/waltid-demo-wallet", | ||
"image": "waltid-demo-wallet" | ||
}, | ||
{ | ||
"folder": "waltid-applications/waltid-web-wallet/apps/waltid-dev-wallet", | ||
"image": "waltid-dev-wallet" | ||
}, | ||
{ | ||
"folder": "waltid-applications/waltid-web-portal", | ||
"image": "portal" | ||
} | ||
] |
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 |
---|---|---|
|
@@ -30,7 +30,6 @@ on: | |
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
env: | ||
IMAGE_TAG: ${{ inputs.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,68 @@ | ||
name: Build and/or push docker (reusable workflow) | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
images: | ||
description: "The json array specifying image data (built with prepare-docker workflow)" | ||
required: true | ||
type: string | ||
version: | ||
description: "release version" | ||
required: true | ||
type: string | ||
tag: | ||
description: "desired tag, e.g. latest, dev (defaults to dev)" | ||
required: false | ||
type: string | ||
default: "dev" | ||
publish: | ||
description: "Specifies whether to publish the images (defaults to false)" | ||
required: false | ||
type: boolean | ||
default: false | ||
artifact: | ||
description: "Upload docker artifact (defaults to false)" | ||
required: false | ||
type: boolean | ||
default: false | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: ${{ fromJSON(inputs.images) }} | ||
steps: | ||
- run: | | ||
echo "${{ matrix.image }}::: ${{ inputs.tag }} / ${{ inputs.version }}" | ||
- uses: actions/checkout@v4 | ||
- name: Login to Docker Hub | ||
if: ${{ inputs.publish }} | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Build and push Docker images (${{ matrix.image }}) | ||
uses: docker/build-push-action@v6 | ||
with: | ||
push: ${{ inputs.publish }} | ||
file: ${{ matrix.folder }}/Dockerfile | ||
tags: waltid/${{ matrix.image }}:${{ inputs.tag }}, waltid/${{ matrix.image }}:${{ inputs.version }} | ||
load: true | ||
build-args: | | ||
--progress=plain | ||
continue-on-error: false | ||
- name: Save Docker Image to ${{ matrix.image }}.tar.gz | ||
if: ${{ inputs.artifact }} | ||
run: docker save waltid/${{ matrix.image }}:${{ inputs.version }} | gzip > ${{ runner.temp }}/${{ matrix.image }}.tar.gz | ||
continue-on-error: false | ||
- name: Upload artifact | ||
if: ${{ inputs.artifact }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.image }} | ||
path: ${{ runner.temp }}/${{ matrix.image }}.tar.gz | ||
retention-days: 1 |
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 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 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,24 @@ | ||
name: Load json | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
jsonpath: | ||
description: "the json file path containing the matrix" | ||
required: true | ||
type: string | ||
outputs: | ||
json: | ||
description: "The json data" | ||
value: ${{ jobs.load-json.outputs.result }} | ||
|
||
jobs: | ||
load-json: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
result: ${{ steps.load-json.outputs.matrix }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: load-json | ||
run: | | ||
echo "matrix=$(jq -c . < ${{ inputs.jsonpath }})" >> $GITHUB_OUTPUT |
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.