Skip to content

Commit

Permalink
fixed assign milestone option
Browse files Browse the repository at this point in the history
  • Loading branch information
kilork committed Mar 31, 2024
1 parent d8c53d9 commit 2e484c0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 43 deletions.
11 changes: 6 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
version: '3.6'
version: "3.6"
services:
keycloak:
build: docker
build:
context: docker
args:
KEYCLOAK_VERSION: ${KEYCLOAK_VERSION}
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: password
KC_PROXY: edge
ports:
- "9080:8080"
# comment line below for default quarkus settings
command: --http-relative-path /auth
- "8080:8080"
37 changes: 3 additions & 34 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,34 +1,3 @@
FROM registry.access.redhat.com/ubi8-minimal AS build-env

ENV KEYCLOAK_VERSION 17.0.0
ARG KEYCLOAK_DIST=https://github.com/keycloak/keycloak/releases/download/$KEYCLOAK_VERSION/keycloak-$KEYCLOAK_VERSION.tar.gz

RUN microdnf install -y tar gzip

ADD $KEYCLOAK_DIST /tmp/keycloak/

# The next step makes it uniform for local development and upstream built.
# If it is a local tar archive then it is unpacked, if from remote is just downloaded.
RUN (cd /tmp/keycloak && \
tar -xvf /tmp/keycloak/keycloak-*.tar.gz && \
rm /tmp/keycloak/keycloak-*.tar.gz) || true

RUN mv /tmp/keycloak/keycloak-* /opt/keycloak && mkdir -p /opt/keycloak/data

RUN chmod -R g+rwX /opt/keycloak

FROM registry.access.redhat.com/ubi8-minimal

COPY --from=build-env --chown=1000:0 /opt/keycloak /opt/keycloak

RUN microdnf update -y && \
microdnf install -y java-11-openjdk-headless && microdnf clean all && rm -rf /var/cache/yum/* && \
echo "keycloak:x:0:root" >> /etc/group && \
echo "keycloak:x:1000:0:keycloak user:/opt/keycloak:/sbin/nologin" >> /etc/passwd

USER 1000

EXPOSE 8080
EXPOSE 8443

ENTRYPOINT [ "/opt/keycloak/bin/kc.sh", "start-dev" ]
FROM quay.io/keycloak/keycloak:${KEYCLOAK_VERSION}
ENTRYPOINT /opt/keycloak/bin/kc.sh
CMD start-dev
8 changes: 4 additions & 4 deletions update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,11 @@ class User {
message: `Assign milestone to issues and merge requests?`,
type: Confirm,
default: release,
before: async (_, next) => {
if (!(versions.milestone)) {
await next("createReleaseIssue");
} else {
before: async (createMilestone, next) => {
if (versions.milestone || createMilestone) {
await next();
} else {
await next("createReleaseIssue");
}
},
},
Expand Down

0 comments on commit 2e484c0

Please sign in to comment.