Skip to content

chore: set permissions #13

chore: set permissions

chore: set permissions #13

Workflow file for this run

name: Indy Plenum - Push Workflow
on:
push:
branches:
- main
- ubuntu-22.04
paths:
- '**.py'
- '.github/**'
- 'build-scripts/**'
- 'bump_version.sh'
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: Indicio-tech/indy-shared-gha/.github/actions/workflow-setup@v2
lint:
name: Lint
uses: Indicio-tech/indy-shared-gha/.github/workflows/lint.yaml@v2
build-docker-image:
name: Create Builder Image
needs: [workflow-setup, lint]
uses: Indicio-tech/indy-shared-gha/.github/workflows/buildimage.yaml@v2
with:
CACHE_KEY_BUILD: ${{ needs.workflow-setup.outputs.CACHE_KEY_BUILD }}
DOCKER_IMAGE: ghcr.io/${{ needs.workflow-setup.outputs.GITHUB_REPOSITORY_NAME }}/plenum-build
UBUNTU_VERSION: ${{ needs.workflow-setup.outputs.UBUNTU_VERSION }}
build_packages:
name: Build Packages
needs: [workflow-setup, build-docker-image]
uses: Indicio-tech/indy-shared-gha/.github/workflows/buildpackages.yaml@v2
with:
DOCKER_IMAGE: ghcr.io/${{ needs.workflow-setup.outputs.GITHUB_REPOSITORY_NAME }}/plenum-build:${{ needs.workflow-setup.outputs.UBUNTU_VERSION }}
UBUNTU_VERSION: ${{ needs.workflow-setup.outputs.UBUNTU_VERSION }}
isDev: 'true'
isRC: 'false'
moduleName: plenum
# plenum_tests:
# name: Test Plenum
# needs: [workflow-setup, lint, build_packages]
# 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 }}
publish_artifacts:
name: Publish Artifacts
needs: [workflow-setup, plenum_tests]

Check failure on line 69 in .github/workflows/Push.yaml

View workflow run for this annotation

GitHub Actions / Indy Plenum - Push Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/Push.yaml (Line: 69, Col: 29): Job 'publish_artifacts' depends on unknown job 'plenum_tests'.
if: needs.workflow-setup.outputs.publish == 'true'
uses: Indicio-tech/indy-shared-gha/.github/workflows/publish_artifacts.yaml@v2
with:
COMPONENT: 'dev'
UBUNTU_VERSION: ${{ needs.workflow-setup.outputs.UBUNTU_VERSION }}
distribution: ${{ needs.workflow-setup.outputs.distribution }}
moduleName: plenum
secrets:
INDY_ARTIFACTORY_REPO_CONFIG: ${{ secrets.INDY_ARTIFACTORY_REPO_CONFIG }}
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}