Changes in docs for release: v0.7.0 #3
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: Nightly Image Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
env: | |
PYTHON_VERSION: 3.8 | |
POETRY_VERSION: 1.5.1 | |
QUAY_ORGANIZATION: 'project-codeflare' | |
SDK_FILE: 'codeflare_sdk-0.0.0.dev0.tar.gz' | |
IMAGE_TAG: 'dev' | |
jobs: | |
nightly-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install Poetry | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: ${{ env.POETRY_VERSION }} | |
- name: Run poetry install | |
run: poetry install --with docs | |
- name: Run poetry build | |
run: poetry build | |
- name: Copy SDK package | |
run: cp dist/${SDK_FILE} custom-nb-image | |
- name: Modify Dockerfile to use locally built SDK | |
run: | | |
sed -i "s/ARG SDK_VERSION=.*/COPY ${{ env.SDK_FILE }} ./" custom-nb-image/Dockerfile | |
sed -i "s/codeflare-sdk==.*/${{ env.SDK_FILE }}\\\\/" custom-nb-image/Dockerfile | |
- name: Image Build | |
working-directory: custom-nb-image | |
run: docker build -t quay.io/${{ env.QUAY_ORGANIZATION }}/notebook:${{ env.IMAGE_TAG }} . | |
- name: Login to Quay.io | |
uses: docker/login-action@v2 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_ID }} | |
password: ${{ secrets.QUAY_TOKEN }} | |
- name: Image Push | |
run: docker push quay.io/${{ env.QUAY_ORGANIZATION }}/notebook:${{ env.IMAGE_TAG }} |