forked from impierce/ssi-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
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 'upstream/dev' into dev
* upstream/dev: (23 commits) feat: add `issuance-config.yml` file, deprecate `/v0/configurations/credential_configurations` endpoint (impierce#91) chore: revert api version to `v0` (impierce#88) chore: improve Dockerfile and docker functionality (impierce#89) feat: add support for multiple credential formats (impierce#85) fix: move dockerignore because it won't be respected otherwise (impierce#84) feat: add `/v1/configurations/credential_configurations` endpoint (impierce#83) feat: add Metadata `config.yml` file (impierce#82) chore: add tracing to `agent_event_publisher_http` (impierce#80) chore: use `domain-linkage` (no `-fetch`) feature in `identity_credential` (impierce#79) feat: create and serve `Domain Linkage Credential` (impierce#77) docs: list available events (impierce#78) feat: produce and serve `did:web` DID documents (impierce#31) feat: add support for `PresentationDefinition` by value (impierce#72) feat: use polling strategy for JIT credentials (impierce#71) ci: switch from manual triggers to pushes to `dev` (impierce#76) ci: use dedicated `arm64` runner (impierce#74) feat: add `offer_id` to all `OfferEvent` events (impierce#69) feat: enable `CorsLayer` (permissive) based on env variable (impierce#66) fix: add image `tags` in `merge` job (impierce#63) fix: add `state` to `AuthorizationResponseVerified` events (impierce#60) ...
- Loading branch information
Showing
70 changed files
with
3,674 additions
and
1,180 deletions.
There are no files selected for viewing
File renamed without changes.
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,12 +1,13 @@ | ||
AGENT_CONFIG_LOG_FORMAT=json | ||
AGENT_CONFIG_EVENT_STORE=postgres | ||
AGENT_APPLICATION_URL=https://my-domain.example.org | ||
AGENT_ISSUANCE_CREDENTIAL_NAME="Demo Credential" | ||
AGENT_ISSUANCE_CREDENTIAL_LOGO_URL=https://my-domain.example.org/credential_logo.png | ||
AGENT_CONFIG_URL=https://my-domain.example.org | ||
AGENT_APPLICATION_ENABLE_CORS=false | ||
AGENT_SECRET_MANAGER_STRONGHOLD_PATH="test.stronghold" | ||
AGENT_SECRET_MANAGER_STRONGHOLD_PASSWORD="secure_password" | ||
AGENT_SECRET_MANAGER_ISSUER_DID="did:key:z6Mkv5KkqNHuR6bPVT8fud3m9JaHBSEjEmiLp7HuGAwtbkk6" | ||
AGENT_SECRET_MANAGER_ISSUER_FRAGMENT="key-0" | ||
AGENT_SECRET_MANAGER_ISSUER_KEY_ID="9O66nzWqYYy1LmmiOudOlh2SMIaUWoTS" | ||
AGENT_CONFIG_DEFAULT_DID_METHOD="did:key" | ||
AGENT_CONFIG_DID_METHOD_WEB_ENABLED=false | ||
AGENT_STORE_DB_CONNECTION_STRING=postgresql://demo_user:demo_pass@localhost:5432/demo | ||
AGENT_API_REST_EXTERNAL_SERVER_RESPONSE_TIMEOUT_MS=500 | ||
AGENT_CONFIG_DOMAIN_LINKAGE_ENABLED=false |
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,110 @@ | ||
# https://docs.docker.com/build/ci/github-actions/multi-platform/#distribute-build-across-multiple-runners | ||
name: Build and push Docker image | ||
|
||
on: | ||
push: | ||
branches: ["dev"] | ||
|
||
env: | ||
REGISTRY_IMAGE: impiercetechnologies/ssi-agent | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- platform: linux/amd64 | ||
runs-on: ubuntu-latest | ||
- platform: linux/arm64 | ||
runs-on: linux-arm64_4-core-16gb | ||
runs-on: ${{ matrix.runs-on }} | ||
steps: | ||
- name: Prepare | ||
run: | | ||
platform=${{ matrix.platform }} | ||
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.REGISTRY_IMAGE }} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push by digest | ||
id: build | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: agent_application/docker/Dockerfile | ||
platforms: ${{ matrix.platform }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true | ||
|
||
- name: Export digest | ||
run: | | ||
mkdir -p /tmp/digests | ||
digest="${{ steps.build.outputs.digest }}" | ||
touch "/tmp/digests/${digest#sha256:}" | ||
- name: Upload digest | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: digests-${{ env.PLATFORM_PAIR }} | ||
path: /tmp/digests/* | ||
if-no-files-found: error | ||
retention-days: 1 | ||
|
||
merge: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build | ||
steps: | ||
- name: Download digests | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: /tmp/digests | ||
pattern: digests-* | ||
merge-multiple: true | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.REGISTRY_IMAGE }} | ||
tags: | | ||
type=sha,prefix= | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Create manifest list and push | ||
working-directory: /tmp/digests | ||
run: | | ||
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ | ||
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *) | ||
- name: Inspect image | ||
run: | | ||
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.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
Oops, something went wrong.