Merge pull request #461 from sovrin-foundation/dependabot/github_acti… #34
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
name: token-plugin-push | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.py' | |
- '.github/**' | |
jobs: | |
workflow-setup: | |
name: Initialize Workflow | |
runs-on: ubuntu-latest | |
outputs: | |
CACHE_KEY_BUILD: ${{ steps.setup.outputs.CACHE_KEY_BUILD }} | |
UBUNTU_VERSION: ${{ steps.setup.outputs.UBUNTU_VERSION }} | |
# Expose the lowercase version of the GitHub repository name | |
# to all subsequent jobs that reference image repositories | |
# as the push and pull operations require the URL of the repository | |
# to be in lowercase. | |
GITHUB_REPOSITORY_NAME: ${{ steps.setup.outputs.GITHUB_REPOSITORY_NAME }} | |
distribution: ${{ steps.setup.outputs.distribution }} | |
publish: ${{ steps.setup.outputs.publish }} | |
steps: | |
- name: checkout source code | |
uses: actions/checkout@v4 | |
- name: setup | |
id: setup | |
uses: hyperledger/indy-shared-gha/.github/actions/workflow-setup@v1 | |
with: | |
ownerRepo: "sovrin-foundation" | |
lint: | |
name: Lint | |
needs: [workflow-setup] | |
uses: hyperledger/indy-shared-gha/.github/workflows/lint.yaml@v1 | |
build-image: | |
name: Create Builder Image | |
needs: [workflow-setup] | |
uses: hyperledger/indy-shared-gha/.github/workflows/buildimage.yaml@v1 | |
with: | |
CACHE_KEY_BUILD: ${{ needs.workflow-setup.outputs.CACHE_KEY_BUILD }} | |
DOCKER_IMAGE: ghcr.io/${{ needs.workflow-setup.outputs.GITHUB_REPOSITORY_NAME }}/token-plugin-build | |
UBUNTU_VERSION: ${{ needs.workflow-setup.outputs.UBUNTU_VERSION }} | |
token-plugin-tests: | |
name: Token Plugin Tests | |
needs: [workflow-setup, build-image] | |
uses: ./.github/workflows/reuseable_test.yaml | |
with: | |
GITHUB_REPOSITORY_NAME: ${{ needs.workflow-setup.outputs.GITHUB_REPOSITORY_NAME }} | |
UBUNTU_VERSION: ${{ needs.workflow-setup.outputs.UBUNTU_VERSION }} | |
build-package: | |
name: Token Plugin Build package | |
needs: [workflow-setup, token-plugin-tests] | |
uses: ./.github/workflows/reuseable_build_package.yaml | |
with: | |
GITHUB_REPOSITORY_NAME: ${{ needs.workflow-setup.outputs.GITHUB_REPOSITORY_NAME }} | |
UBUNTU_VERSION: ${{ needs.workflow-setup.outputs.UBUNTU_VERSION }} | |
isDev: true | |
publish-package: | |
name: Token Plugin Publish Packages | |
needs: [workflow-setup, build-package] | |
if: needs.workflow-setup.outputs.publish == 'true' | |
uses: ./.github/workflows/reuseable_publish.yaml | |
with: | |
GITHUB_REPOSITORY_NAME: ${{ needs.workflow-setup.outputs.GITHUB_REPOSITORY_NAME }} | |
UBUNTU_VERSION: ${{ needs.workflow-setup.outputs.UBUNTU_VERSION }} | |
REPO_COMPONENT: 'dev' | |
distribution: ${{ needs.workflow-setup.outputs.distribution }} | |
secrets: | |
SOVRIN_ARTIFACTORY_REPO_CONFIG: ${{ secrets.SOVRIN_ARTIFACTORY_REPO_CONFIG }} | |