|
6 | 6 | release-version:
|
7 | 7 | type: string
|
8 | 8 | required: true
|
9 |
| - description: 'Version number (for example: 0.1.0)' |
10 |
| - is-latest: |
11 |
| - description: 'Select if the built image should be tagged as latest' |
| 9 | + description: 'Version number (This should not include `v`, for example: 0.1.0)' |
| 10 | + is-stable: |
| 11 | + description: 'Select if the built image should be tagged as stable' |
12 | 12 | required: true
|
13 | 13 | type: boolean
|
14 | 14 | quay-organization:
|
@@ -57,25 +57,27 @@ jobs:
|
57 | 57 | uses: stefanzweifel/git-auto-commit-action@v4
|
58 | 58 | with:
|
59 | 59 | file_pattern: 'docs'
|
60 |
| - commit_message: "Changes in docs for release: v${{ github.event.inputs.release-version }}" |
61 |
| - - name: Create Github release |
62 |
| - uses: ncipollo/release-action@v1 |
63 |
| - with: |
64 |
| - tag: "v${{ github.event.inputs.release-version }}" |
| 60 | + commit_message: "Changes in docs for release: ${{ github.event.inputs.release-version }}" |
65 | 61 |
|
66 | 62 | - name: Image Build
|
67 | 63 | run: |
|
68 | 64 | cd custom-nb-image
|
69 |
| - docker 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 }} . |
70 |
| - docker tag quay.io/${{ github.event.inputs.quay-organization }}/notebook:v${{ github.event.inputs.release-version }} quay.io/${{ github.event.inputs.quay-organization }}/notebook:latest |
| 65 | + 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 }} . |
| 66 | +
|
71 | 67 | - name: Login to Quay.io
|
72 | 68 | uses: docker/login-action@v2
|
73 | 69 | with:
|
74 | 70 | registry: quay.io
|
75 | 71 | username: ${{ secrets.QUAY_ID }}
|
76 | 72 | password: ${{ secrets.QUAY_TOKEN }}
|
| 73 | + |
77 | 74 | - name: Image Push
|
78 |
| - run: docker push quay.io/${{ github.event.inputs.quay-organization }}/notebook:v${{ github.event.inputs.release-version }} |
79 |
| - - name: Image Push Latest |
80 |
| - if: ${{ inputs.is-latest }} |
81 |
| - run: docker push quay.io/${{ github.event.inputs.quay-organization }}/notebook:latest |
| 75 | + run: | |
| 76 | + podman push quay.io/${{ github.event.inputs.quay-organization }}/notebook:v${{ github.event.inputs.release-version }} |
| 77 | + podman push quay.io/${{ github.event.inputs.quay-organization }}/notebook:v${{ github.event.inputs.release-version }} quay.io/${{ github.event.inputs.quay-organization }}/notebook:stable |
| 78 | +
|
| 79 | + - name: Create Github release |
| 80 | + uses: ncipollo/release-action@v1 |
| 81 | + with: |
| 82 | + tag: "${{ github.event.inputs.release-version }}" |
| 83 | + generateReleaseNotes: true |
0 commit comments