Skip to content

Commit

Permalink
Merge pull request #484 from harshad16/main
Browse files Browse the repository at this point in the history
[2024a] sync release branch 2024a with the latest changes of main
  • Loading branch information
harshad16 authored Apr 5, 2024
2 parents 6f4c36b + e66dc95 commit 3d5d0b6
Show file tree
Hide file tree
Showing 34 changed files with 5,223 additions and 691 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-add-issue-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- name: Generate github-app token
id: app-token
uses: getsentry/action-github-app-token@v2
uses: getsentry/action-github-app-token@v3
with:
app_id: ${{ secrets.DEVOPS_APP_ID }}
private_key: ${{ secrets.DEVOPS_APP_PRIVATE_KEY }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/notebooks-digest-updater-upstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
# Checkout the branch
- name: Checkout branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ env.BRANCH_NAME }}

Expand All @@ -53,7 +53,7 @@ jobs:
# Get the latest weekly build commit hash: https://github.com/opendatahub-io/notebooks/commits/2024a
- name: Checkout upstream notebooks repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: opendatahub-io/notebooks.git
ref: ${{ env.RELEASE_VERSION_N }}
Expand All @@ -66,7 +66,7 @@ jobs:
# Checkout the release branch to apply the updates
- name: Checkout release branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ env.DIGEST_UPDATER_BRANCH }}

Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
# Get the latest weekly build commit hash: https://github.com/opendatahub-io/notebooks/commits/2023b
- name: Checkout upstream notebooks repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: opendatahub-io/notebooks.git
ref: ${{ env.RELEASE_VERSION_N_1 }}
Expand All @@ -124,7 +124,7 @@ jobs:
# Checkout the release branch to apply the updates
- name: Checkout release branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ env.DIGEST_UPDATER_BRANCH }}

Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
pull-requests: write
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: pull-request
uses: repo-sync/pull-request@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/params-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
validation-of-params-env:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/piplock-renewal-2023a.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
steps:
# Checkout the paricular branch
- name: Checkout code from the release branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: 2023a
token: ${{ secrets.GH_ACCESS_TOKEN }}

# Setup Python environment
- name: Setup Python environment
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: |
3.8
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/piplock-renewal-2023b.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
steps:
# Checkout the paricular branch
- name: Checkout code from the release branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: 2023b
token: ${{ secrets.GH_ACCESS_TOKEN }}

# Setup Python environment
- name: Setup Python environment
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: |
3.8
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-merge-image-delete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Install skopeo
Expand All @@ -23,7 +23,7 @@ jobs:
sudo apt-get -y update
sudo apt-get -y install skopeo
- name: Get Pull Request Number
uses: actions/github-script@v6
uses: actions/github-script@v7
id: get_pr_number
with:
script: |
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/sec-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# Checkout the branch
- name: Checkout branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ env.BRANCH_NAME }}

Expand All @@ -52,7 +52,7 @@ jobs:
# Get the latest weekly build commit hash: https://github.com/opendatahub-io/notebooks/commits/2023b
- name: Checkout upstream notebooks repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: opendatahub-io/notebooks.git
ref: ${{ env.RELEASE_VERSION_N }}
Expand All @@ -64,7 +64,7 @@ jobs:
echo "HASH_N=$(git rev-parse --short HEAD)" >> ${GITHUB_OUTPUT}
- name: Checkout "N - 1" branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: opendatahub-io/notebooks.git
ref: ${{ env.RELEASE_VERSION_N_1 }}
Expand All @@ -76,7 +76,7 @@ jobs:
echo "HASH_N_1=$(git rev-parse --short HEAD)" >> ${GITHUB_OUTPUT}
- name: Checkout "main" branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: opendatahub-io/notebooks.git
ref: main
Expand All @@ -89,12 +89,12 @@ jobs:
# Checkout the release branch to apply the updates
- name: Checkout release branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ env.SEC_SCAN_BRANCH }}

- name: setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10' # install the python version needed

Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
pull-requests: write
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: pull-request
uses: repo-sync/pull-request@v2
Expand Down
27 changes: 25 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
CONTAINER_ENGINE ?= podman
IMAGE_REGISTRY ?= quay.io/opendatahub/workbench-images
RELEASE ?= 2023b
DATE ?= $(shell date +'%Y%m%d')

# OS dependant: Generate date, select appropriate cmd to locate container engine
ifeq ($(OS), Windows_NT)
DATE ?= $(shell powershell -Command "Get-Date -Format 'yyyyMMdd'")
WHERE_WHICH ?= where
else
DATE ?= $(shell date +'%Y%m%d')
WHERE_WHICH ?= which
endif

IMAGE_TAG ?= $(RELEASE)_$(DATE)
KUBECTL_BIN ?= bin/kubectl
KUBECTL_VERSION ?= v1.23.11
Expand All @@ -10,6 +18,16 @@ REQUIRED_RUNTIME_IMAGE_COMMANDS="curl python3"
REQUIRED_CODE_SERVER_IMAGE_COMMANDS="curl python oc code-server"
REQUIRED_R_STUDIO_IMAGE_COMMANDS="curl python oc /usr/lib/rstudio-server/bin/rserver"

# Detect and select the system's available container engine
ifeq (, $(shell $(WHERE_WHICH) podman))
DOCKER := $(shell $(WHERE_WHICH) docker)
ifeq (, $(DOCKER))
$(error "Neither Docker nor Podman is installed. Please install one of them.")
endif
CONTAINER_ENGINE := docker
else
CONTAINER_ENGINE := podman
endif

# Build function for the notebok image:
# ARG 1: Image tag name.
Expand Down Expand Up @@ -96,6 +114,11 @@ habana-jupyter-1.10.0-ubi8-python-3.8: jupyter-datascience-ubi8-python-3.8
habana-jupyter-1.11.0-ubi8-python-3.8: jupyter-datascience-ubi8-python-3.8
$(call image,$@,habana/1.11.0/ubi8-python-3.8,$<)

# Build and push habana-jupyter-1.13.0-ubi8-python-3.8 image to the registry
.PHONY: habana-jupyter-1.13.0-ubi8-python-3.8
habana-jupyter-1.13.0-ubi8-python-3.8: jupyter-datascience-ubi8-python-3.8
$(call image,$@,habana/1.13.0/ubi8-python-3.8,$<)

# Build and push runtime-minimal-ubi8-python-3.8 image to the registry
.PHONY: runtime-minimal-ubi8-python-3.8
runtime-minimal-ubi8-python-3.8: base-ubi8-python-3.8
Expand Down
Loading

0 comments on commit 3d5d0b6

Please sign in to comment.