-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update ci not releasing jupyterhub container (#65)
- Loading branch information
1 parent
6baac1b
commit eef0427
Showing
7 changed files
with
38 additions
and
93 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,20 +23,24 @@ jobs: | |
with: | ||
slack-channel: ${{ vars.SLACK_CHANNEL }} | ||
filters: | | ||
container: | ||
jupyter-container: | ||
- './.github/workflows/on-pr-update.yaml' | ||
- 'containers/**' | ||
chart: | ||
- './.github/workflows/on-pr-update.yaml' | ||
- 'charts/**' | ||
- 'containers/jupyterlab/**' | ||
- 'containers/custom-packages/**' | ||
- 'containers/files/**' | ||
jupyterhub-container: | ||
- './.github/workflows/on-pr-update.yaml' | ||
- 'containers/jupyterhub/**' | ||
- 'containers/custom-packages/**' | ||
- 'containers/files/**' | ||
secrets: | ||
slack-token: ${{ secrets.SLACK_TOKEN }} | ||
|
||
jupyterhub-container: | ||
# Build the container and push it as :pr-42 and :pr-42-fe45b3h | ||
needs: changes | ||
if: fromJSON(needs.changes.outputs.changes).container == 'true' | ||
if: fromJSON(needs.changes.outputs.changes).jupyterhub-container == 'true' | ||
uses: SwanseaUniversityMedical/workflows/.github/workflows/[email protected] | ||
with: | ||
job-name: jupyterhub-container | ||
|
@@ -59,14 +63,14 @@ jobs: | |
jupyterlab-standard-container: | ||
# Build the container and push it as :pr-42 and :pr-42-fe45b3h | ||
needs: changes | ||
if: fromJSON(needs.changes.outputs.changes).container == 'true' | ||
if: fromJSON(needs.changes.outputs.changes).jupyter-container == 'true' | ||
uses: SwanseaUniversityMedical/workflows/.github/workflows/[email protected] | ||
with: | ||
job-name: jupyterlab-standard-container | ||
container-registry: ${{ vars.HARBOR_REGISTRY }} | ||
container-registry-user: ${{ vars.HARBOR_USER }} | ||
container-registry-project: ${{ vars.HARBOR_PROJECT }} | ||
container-registry-repo: ${{ vars.HARBOR_REPO }} | ||
container-registry-repo: jupyter | ||
slack-channel: ${{ vars.SLACK_CHANNEL }} | ||
build-command: | | ||
sudo apt update && | ||
|
@@ -78,22 +82,3 @@ jobs: | |
secrets: | ||
container-registry-token: ${{ secrets.HARBOR_TOKEN }} | ||
slack-token: ${{ secrets.SLACK_TOKEN }} | ||
|
||
chart: | ||
# Build the chart and push it as :pr-42 and :pr-42-fe45b3h | ||
needs: changes | ||
if: fromJSON(needs.changes.outputs.changes).chart == 'true' | ||
uses: SwanseaUniversityMedical/workflows/.github/workflows/[email protected] | ||
with: | ||
job-name: chart | ||
chart: charts/** | ||
chart-registry: ${{ vars.HARBOR_REGISTRY }} | ||
chart-registry-user: ${{ vars.HARBOR_USER }} | ||
chart-registry-project: ${{ vars.HARBOR_PROJECT }} | ||
chart-registry-repo: ${{ vars.HARBOR_REPO }} | ||
slack-channel: ${{ vars.SLACK_CHANNEL }} | ||
test-command: | | ||
helm template $CHART --values charts/jupyter/values.yaml | ||
secrets: | ||
chart-registry-token: ${{ secrets.HARBOR_TOKEN }} | ||
slack-token: ${{ secrets.SLACK_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,19 +24,18 @@ jobs: | |
filters: | | ||
jupyter-container: | ||
- './.github/workflows/on-release.yaml' | ||
- 'containers/**' | ||
- 'plugins/**' | ||
chart: | ||
- 'containers/jupyterlab/**' | ||
- 'containers/custom-packages/**' | ||
- 'containers/files/**' | ||
jupyterhub-container: | ||
- './.github/workflows/on-release.yaml' | ||
- 'charts/**' | ||
- 'containers/jupyterhub/**' | ||
- 'containers/custom-packages/**' | ||
- 'containers/files/**' | ||
secrets: | ||
slack-token: ${{ secrets.SLACK_TOKEN }} | ||
|
||
###################################################################################################################### | ||
# Container Tasks | ||
###################################################################################################################### | ||
|
||
jupyter-container: | ||
# Build the DARE Jupyter container and push it as :rc-1.0.0 | ||
needs: changes | ||
|
@@ -47,7 +46,7 @@ jobs: | |
container-registry: ${{ vars.HARBOR_REGISTRY }} | ||
container-registry-user: ${{ vars.HARBOR_USER }} | ||
container-registry-project: ${{ vars.HARBOR_PROJECT }} | ||
container-registry-repo: ${{ vars.HARBOR_REPO }} | ||
container-registry-repo: jupyter | ||
release-tag-format: 'DARE-Jupyter-Container-${version}' | ||
slack-channel: ${{ vars.SLACK_CHANNEL }} | ||
build-command: | | ||
|
@@ -61,26 +60,26 @@ jobs: | |
container-registry-token: ${{ secrets.HARBOR_TOKEN }} | ||
slack-token: ${{ secrets.SLACK_TOKEN }} | ||
|
||
###################################################################################################################### | ||
# Chart Tasks | ||
###################################################################################################################### | ||
|
||
chart: | ||
# Build the chart and push it as x.y.z-rc | ||
jupyterhub-container: | ||
# Build the DARE Jupyter container and push it as :rc-1.0.0 | ||
needs: changes | ||
if: fromJSON(needs.changes.outputs.changes).chart == 'true' | ||
uses: SwanseaUniversityMedical/workflows/.github/workflows/on-release-chart[email protected] | ||
if: fromJSON(needs.changes.outputs.changes).jupyterhub-container == 'true' | ||
uses: SwanseaUniversityMedical/workflows/.github/workflows/on-release-container[email protected] | ||
with: | ||
job-name: chart | ||
chart-registry: ${{ vars.HARBOR_REGISTRY }} | ||
chart-registry-user: ${{ vars.HARBOR_USER }} | ||
chart-registry-project: ${{ vars.HARBOR_PROJECT }} | ||
chart-registry-repo: ${{ vars.HARBOR_REPO }} | ||
release-tag-format: 'DARE-Jupyter-Helm-${version}' | ||
job-name: jupyterhub-container | ||
container-registry: ${{ vars.HARBOR_REGISTRY }} | ||
container-registry-user: ${{ vars.HARBOR_USER }} | ||
container-registry-project: ${{ vars.HARBOR_PROJECT }} | ||
container-registry-repo: jupyterhub | ||
release-tag-format: 'DARE-Jupyterhub-Container-${version}' | ||
slack-channel: ${{ vars.SLACK_CHANNEL }} | ||
chart: charts/** | ||
test-command: | | ||
helm template $CHART --values charts/jupyter/values.yaml | ||
build-command: | | ||
sudo apt update && | ||
sudo apt install python3.8-venv && | ||
python -m pip install --user --upgrade build && | ||
python -m build --outdir ./dist ./containers/custom-packages/jupyter-cloudbeaver-proxy && | ||
python -m build --outdir ./dist ./containers/custom-packages/jupyter-rsession-proxy && | ||
docker build -t $IMAGE -f containers/jupyterhub/Dockerfile . | ||
secrets: | ||
chart-registry-token: ${{ secrets.HARBOR_TOKEN }} | ||
container-registry-token: ${{ secrets.HARBOR_TOKEN }} | ||
slack-token: ${{ secrets.SLACK_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.