Skip to content

wip: add gha for images #2

wip: add gha for images

wip: add gha for images #2

Workflow file for this run

name: Release
on:
push:
branches: [ "add-gha-docker-images" ]
release:
types: [ created ]
jobs:
release_to_pypi:
runs-on: ubuntu-latest
steps:
- run: echo "fake release pypy"
retrieve_version:
runs-on: ubuntu-latest
name: Retrieve protoplasm python package version
steps:
- uses: actions/checkout@v4
- run: |
PROTOPLASM_PY_PKG_FULL_VERSION=`python3 -c "import protoplasm; print(protoplasm.__version__)"`
PROTOPLASM_PY_PKG_SHORT_VERSION=`echo ${PROTOPLASM_PY_PKG_FULL_VERSION} | cut -d. -f1,2`
echo "PROTOPLASM_PY_PKG_VERSION=${PROTOPLASM_PY_PKG_SHORT_VERSION}" >> $GITHUB_ENV
echo "protoplasm version is ${PROTOPLASM_PY_PKG_FULL_VERSION}
outputs:
version: ${{ env.PROTOPLASM_PY_PKG_VERSION }}
image_alpy:
needs: [ release_to_pypi, retrieve_version ]
uses: ./.github/workflows/images_alpy.yml
with:
PROTOPLASM_PY_PKG_VERSION: ${{ needs.retrieve_version.outputs.version }}
GRPCIO_IMAGE_VERSION: "1.0.0"
PSYCOPG_VERSION: "3.1"
IMAGE_REGISTRY: "vayan"
secrets:
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
image_depy:
needs: [ release_to_pypi, retrieve_version ]
uses: ./.github/workflows/images_depy.yml
with:
PROTOPLASM_PY_PKG_VERSION: ${{ needs.retrieve_version.outputs.version }}
PYODBC_VERSION: "5.1"
IMAGE_REGISTRY: "vayan"
secrets:
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}