Skip to content

Docker images in workflows development & production #11

Docker images in workflows development & production

Docker images in workflows development & production #11

# This workflow deploy system tools to development environment
name: deploy DEVELOPMENT
on:
push:
branches: [ "mn_manager" ]
pull_request_review:
types:
- submitted
jobs:
build-package-on-push:
if: ${{ github.event_name == 'push'}}
name: Build package ${{ vars.MN_MANAGER_PACKAGE_NAME }}
uses: WattRex/System-Tools/.github/workflows/build_python_package.yml@develop
with:
package-name: ${{ vars.MN_MANAGER_PACKAGE_NAME }}
package-path: mn_manager
source-path: mn_manager/src/wattrex_mn_manager
python-version: "3.10"
is-test-package: false
build-package-on-pull-request:
if: ${{ github.event_name == 'pull_request_review' && github.event.review.state == 'approved' && github.event.pull_request.head.ref == 'mn_manager'}}
name: Build package ${{ vars.MN_MANAGER_PACKAGE_NAME }}
uses: WattRex/System-Tools/.github/workflows/build_python_package.yml@develop
with:
package-name: ${{ vars.MN_MANAGER_PACKAGE_NAME }}
package-path: mn_manager
source-path: mn_manager/src/wattrex_mn_manager
python-version: "3.10"
is-test-package: false
publish-package:
name: Publish package ${{ vars.MN_MANAGER_PACKAGE_NAME }} to Test PyPi
needs: build-package-on-pull-request
runs-on: ubuntu-latest
environment: development
permissions:
id-token: write
steps:
- name: Download a single artifact
uses: actions/download-artifact@v3
with:
name: ${{ vars.MN_MANAGER_PACKAGE_NAME }}
path: ${{ vars.MN_MANAGER_PACKAGE_NAME }}/dist/
- name: Publish package to Test PyPI
uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e #realse/v1.8.10
with:
verbose: true
repository-url: https://test.pypi.org/legacy/
packages-dir: "${{ vars.MN_MANAGER_PACKAGE_NAME }}/dist/"
publish-DEV-docker-image-mn-manager:
name: Publish mn-manager docker image
needs: publish-package
uses: ./.github/workflow/docker_image.yml

Check failure on line 62 in .github/workflows/deploy_development.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy_development.yml

Invalid workflow file

invalid value workflow reference: no version specified
with:
dockerfile-path: ./devops/mn_manager/Dockerfile.mn_manager
docker-repo-name: wattrex-mn-manager-dev
is-develop: true
publish-DEV-docker-image-web-server:
name: Publish web-server docker image
if: ${{ github.event_name == 'pull_request_review' && github.event.review.state == 'approved' && github.event.pull_request.head.ref == 'web_server'}}
uses: ./.github/workflow/docker_image.yml
with:
dockerfile-path: ./devops/web_server/Dockerfile.web_server
docker-repo-name: wattrex-web-server-dev
is-develop: true