Skip to content

Commit

Permalink
feat(CICD): Add pip build and push to the build steps
Browse files Browse the repository at this point in the history
  • Loading branch information
panpuchkov committed Dec 27, 2023
1 parent d6c6f8a commit 8b31049
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ jobs:
build:
runs-on: ubuntu-latest
needs: unittests
if: github.ref == 'refs/heads/main'
# if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 10

- name: Docker Build
shell: bash
Expand All @@ -70,4 +72,11 @@ jobs:
DOCKER_TAG="latest"
fi
IMAGE_NAME_WITH_VERSION="${{ env.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${DOCKER_TAG}"
docker push "${IMAGE_NAME_WITH_VERSION}"
# docker push "${IMAGE_NAME_WITH_VERSION}"
- name: Pip Build & Push
shell: bash
run: |
set -x
pip install -r requirements-build.txt
python -m build

0 comments on commit 8b31049

Please sign in to comment.