|
23 | 23 | type: string
|
24 | 24 | default: "1.5.1"
|
25 | 25 | required: true
|
| 26 | + codeflare-repository-organization: |
| 27 | + type: string |
| 28 | + default: "project-codeflare" |
26 | 29 |
|
27 | 30 | jobs:
|
28 | 31 | release:
|
@@ -81,18 +84,19 @@ jobs:
|
81 | 84 | - name: Publish package distributions to PyPI
|
82 | 85 | uses: pypa/gh-action-pypi-publish@release/v1
|
83 | 86 |
|
84 |
| - - name: Image Build |
| 87 | + - name: Notebook Image Build and Push |
85 | 88 | run: |
|
86 |
| - cd custom-nb-image |
87 |
| - podman build --build-arg SDK_VERSION="${{ github.event.inputs.release-version }}" -t quay.io/${{ github.event.inputs.quay-organization }}/notebook:v${{ github.event.inputs.release-version }} . |
88 |
| - - name: Login to Quay.io |
89 |
| - uses: redhat-actions/podman-login@v1 |
90 |
| - with: |
91 |
| - registry: quay.io |
92 |
| - username: ${{ secrets.QUAY_ID }} |
93 |
| - password: ${{ secrets.QUAY_TOKEN }} |
94 |
| - - name: Image Push |
95 |
| - run: podman push quay.io/${{ github.event.inputs.quay-organization }}/notebook:v${{ github.event.inputs.release-version }} |
96 |
| - - name: Image Push Latest |
97 |
| - if: ${{ inputs.is-latest }} |
98 |
| - run: podman push quay.io/${{ github.event.inputs.quay-organization }}/notebook:v${{ github.event.inputs.release-version }} quay.io/${{ github.event.inputs.quay-organization }}/notebook:latest |
| 89 | + gh workflow run image-build-and-push.yml --repo ${{ github.event.inputs.codeflare-repository-organization }}/codeflare-sdk --ref ${{ github.ref }} --field is-stable=${{ github.event.inputs.is-stable }} --field release-version=${{ github.event.inputs.release-version }} --field quay-organization=${{ github.event.inputs.quay-organization }} |
| 90 | + env: |
| 91 | + GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }} |
| 92 | + shell: bash |
| 93 | + |
| 94 | + - name: Wait for Notebook image build and push to finish |
| 95 | + run: | |
| 96 | + # wait for a while for Run to be started |
| 97 | + sleep 5 |
| 98 | + run_id=$(gh run list --workflow image-build-and-push.yaml --repo ${{ github.event.inputs.codeflare-repository-organization }}/codeflare-sdk --limit 1 --json databaseId --jq .[].databaseId) |
| 99 | + gh run watch ${run_id} --repo ${{ github.event.inputs.codeflare-repository-organization }}/codeflare-sdk --interval 10 --exit-status |
| 100 | + env: |
| 101 | + GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }} |
| 102 | + shell: bash |
0 commit comments