-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into vlee/lightwebhook
- Loading branch information
Showing
144 changed files
with
1,703 additions
and
748 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 |
---|---|---|
|
@@ -6,4 +6,6 @@ build | |
docs | ||
dist | ||
test-reports | ||
.python-version | ||
.python-version | ||
docker | ||
env |
File renamed without changes.
File renamed without changes.
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
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,97 @@ | ||
name: Publish ACA-Py Image (Indy) | ||
run-name: Publish ACA-Py ${{ inputs.tag || github.event.release.tag_name }} Image (Indy ${{ inputs.indy_version || '1.16.0' }}) | ||
on: | ||
release: | ||
types: [released] | ||
|
||
workflow_dispatch: | ||
inputs: | ||
indy_version: | ||
description: 'Indy SDK Version' | ||
required: true | ||
default: 1.16.0 | ||
type: string | ||
tag: | ||
description: 'Image tag' | ||
required: true | ||
type: string | ||
|
||
# Note: | ||
# - ACA-Py with Indy SDK image builds do not include support for the linux/arm64 platform. | ||
# - See notes below for details. | ||
|
||
env: | ||
INDY_VERSION: ${{ inputs.indy_version || '1.16.0' }} | ||
|
||
jobs: | ||
publish-image: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.6', '3.9'] | ||
|
||
name: Publish ACA-Py Image (Indy) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Gather image info | ||
id: info | ||
run: | | ||
echo "repo-owner=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_OUTPUT | ||
- name: Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-buildx- | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Log in to the GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Setup Image Metadata | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: | | ||
ghcr.io/${{ steps.info.outputs.repo-owner }}/aries-cloudagent-python | ||
tags: | | ||
type=raw,value=py${{ matrix.python-version }}-indy-${{ env.INDY_VERSION }}-${{ inputs.tag || github.event.release.tag_name }} | ||
- name: Build and Push Image to ghcr.io | ||
uses: docker/build-push-action@v3 | ||
with: | ||
push: true | ||
context: . | ||
file: docker/Dockerfile.indy | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
target: main | ||
build-args: | | ||
python_version=${{ matrix.python-version }} | ||
indy_version=${{ env.INDY_VERSION }} | ||
acapy_version=${{ inputs.tag || github.event.release.tag_name }} | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | ||
# Images do not include support for the linux/arm64 platform due to a known issue compiling the postgres plugin | ||
# - https://github.com/hyperledger/indy-sdk/issues/2445 | ||
# There is a pending PR to fix this issue here; https://github.com/hyperledger/indy-sdk/pull/2453 | ||
platforms: linux/amd64,linux/386 | ||
|
||
# Temp fix | ||
# https://github.com/docker/build-push-action/issues/252 | ||
# https://github.com/moby/buildkit/issues/1896 | ||
- name: Move cache | ||
run: | | ||
rm -rf /tmp/.buildx-cache | ||
mv /tmp/.buildx-cache-new /tmp/.buildx-cache |
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,81 @@ | ||
name: Publish ACA-Py Image | ||
run-name: Publish ACA-Py ${{ inputs.tag || github.event.release.tag_name }} Image | ||
on: | ||
release: | ||
types: [released] | ||
|
||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'Image tag' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
publish-image: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.6', '3.9'] | ||
|
||
name: Publish ACA-Py Image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Gather image info | ||
id: info | ||
run: | | ||
echo "repo-owner=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_OUTPUT | ||
- name: Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-buildx- | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Log in to the GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Setup Image Metadata | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: | | ||
ghcr.io/${{ steps.info.outputs.repo-owner }}/aries-cloudagent-python | ||
tags: | | ||
type=raw,value=py${{ matrix.python-version }}-${{ inputs.tag || github.event.release.tag_name }} | ||
- name: Build and Push Image to ghcr.io | ||
uses: docker/build-push-action@v3 | ||
with: | ||
push: true | ||
context: . | ||
file: docker/Dockerfile | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
target: main | ||
build-args: | | ||
python_version=${{ matrix.python-version }} | ||
acapy_version=${{ inputs.tag || github.event.release.tag_name }} | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | ||
platforms: linux/amd64,linux/arm64,linux/386 | ||
|
||
# Temp fix | ||
# https://github.com/docker/build-push-action/issues/252 | ||
# https://github.com/moby/buildkit/issues/1896 | ||
- name: Move cache | ||
run: | | ||
rm -rf /tmp/.buildx-cache | ||
mv /tmp/.buildx-cache-new /tmp/.buildx-cache |
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
Oops, something went wrong.