Skip to content

Commit 6c8c378

Browse files
committed
Merge branch 'main' into re-register
2 parents 24a6da9 + 68f3dfd commit 6c8c378

File tree

7 files changed

+27
-17
lines changed

7 files changed

+27
-17
lines changed

.github/workflows/publish-docker-image.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010
- self-registration/**
1111

1212
env:
13-
REGISTRY: ghcr.io
14-
IMAGE_NAME: ${{ github.repository }}
13+
REGISTRY: quay.io
14+
IMAGE_NAME: nebari/nebari-self-registration
1515

1616
jobs:
1717
push:
@@ -20,18 +20,23 @@ jobs:
2020
packages: write
2121
contents: read
2222
steps:
23-
- uses: actions/checkout@v3
24-
- name: Set lower case image name
23+
- name: "Checkout Repository 🛎️"
24+
uses: actions/checkout@v3
25+
- name: "Login to Quay Container Registry 🔐"
26+
uses: docker/login-action@v2
27+
with:
28+
registry: quay.io
29+
username: ${{ secrets.QUAY_USERNAME }}
30+
password: ${{ secrets.QUAY_TOKEN }}
31+
- name: "Set lower case image name"
2532
run: echo "IMAGE_LC=${IMAGE_NAME,,}" >>${GITHUB_ENV}
26-
- name: Set the timestamp for version
33+
- name: "Set the timestamp for version"
2734
run: echo "VERSION=$(date +'%Y%m%d-%H%M')" >> ${GITHUB_ENV}
28-
- name: Build image
35+
- name: "Build image"
2936
run: docker build self-registration --file self-registration/Dockerfile --tag $IMAGE_LC --label "runnumber=${GITHUB_RUN_ID}"
30-
- name: Log in to registry
31-
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login $REGISTRY -u $ --password-stdin
3237
- name: Push image
3338
run: |
34-
IMAGE_ID=ghcr.io/$IMAGE_LC
39+
IMAGE_ID=$REGISTRY/$IMAGE_LC
3540
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
3641
3742
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ Configuration options include:
4141
> **NOTE:** The `registration_group` must have been created in the Nebari realm in Keycloak prior to deploying the extension.
4242
4343
#### Example Nebari Config File
44+
45+
> [!NOTE]
46+
> The configuration options for the plugin were recently updated. Previously, `self_registration.coupons` accepted a list of coupon codes and there were shared options for all the specified coupons (e.g., `approved_domains`, `account_expiration_days`, etc...). Now, the field takes a map of coupon codes, where each coupon accepts individual configuration options (as outlined below). Please make sure to update the configuration values when updating to newer versions of the plugin after `0.0.14`.
47+
4448
```yaml
4549
provider: aws
4650
namespace: dev

self-registration/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM python:3.12
1+
FROM python:3.12@sha256:05855f5bf06f5a004b0c1a8aaac73a9d9ea54390fc289d3e80ef52c4f90d5585
22

33
WORKDIR /app
44

55
COPY ./requirements.txt /tmp/requirements.txt
66

7-
# need to pre-install cython < 3 to avoid pyyaml >= 5.4.1 incompatibility https://github.com/yaml/pyyaml/issues/601
7+
# need to pre-install cython < 3 to avoid pyyaml >= 5.4.1 incompatibility: https://github.com/yaml/pyyaml/issues/601
88
RUN echo "cython<3" > /tmp/constraint.txt
99

1010
RUN PIP_CONSTRAINT=/tmp/constraint.txt pip install --no-cache-dir --upgrade -r /tmp/requirements.txt
@@ -15,4 +15,4 @@ COPY ./app /app
1515
RUN useradd -m www
1616
USER www
1717

18-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
18+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]

self-registration/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
fastapi==0.104.1
22
uvicorn==0.24.0.post1
33
jinja2==3.1.2
4+
setuptools==69.0.3
45
python-keycloak==3.3.0
56
pyyaml==5.4.1
67
python-multipart==0.0.6
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.12"
1+
__version__ = "0.0.15"

src/nebari_plugin_self_registration/terraform/modules/self-registration/chart/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.0.16
18+
version: 0.0.17
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "0.0.12"
24+
appVersion: "0.0.15"

src/nebari_plugin_self_registration/terraform/modules/self-registration/chart/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
replicaCount: 1
66
image:
7-
repository: ghcr.io/metrostar/nebari-self-registration
7+
repository: quay.io/nebari/nebari-self-registration
88
pullPolicy: IfNotPresent
99
# Overrides the image tag whose default is the chart appVersion.
10-
tag: "20240515-1204"
10+
tag: "20241025-1410"
1111

1212
imagePullSecrets: []
1313
nameOverride: ""

0 commit comments

Comments
 (0)