Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add github actions #2

Merged
merged 8 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/pr-title-checker-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"LABEL": {
"name": "",
"color": "EEEEEE"
},
"CHECKS": {
"prefixes": ["fix: ", "feat: ", "feature: ", "chore: ", "hotfix: "]
},
"MESSAGES": {
"success": "All OK",
"failure": "Missing prefix",
"notice": ""
}
}
12 changes: 12 additions & 0 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Integration tests

on:
pull_request:
branches: [ development, release-* ]
issue_comment:
types: [created]

jobs:
integration_tests:
uses: epam/ai-dial-ci/.github/workflows/[email protected]
secrets: inherit
16 changes: 16 additions & 0 deletions .github/workflows/pr_check_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Code checks - tests

on:
pull_request:
branches:
- development
- release-*

jobs:
run_tests:
uses: epam/ai-dial-ci/.github/workflows/[email protected]
secrets: inherit
with:
bypass_checks: false
java_version: 17
java_distribution: temurin
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Release version

on:
push:
branches: [ development, release-* ]

env:
IMAGE_NAME: ${{ github.repository }}

jobs:
release:
uses: epam/ai-dial-ci/.github/workflows/[email protected]
secrets: inherit
257 changes: 0 additions & 257 deletions .gitlab-ci.yml

This file was deleted.

28 changes: 20 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
FROM amazoncorretto:11-alpine3.17
FROM gradle:8.3.0-jdk17-alpine as cache
WORKDIR /home/gradle/src
ENV GRADLE_USER_HOME /cache
COPY build.gradle settings.gradle ./
RUN gradle --no-daemon build --stacktrace

ADD ./build/distributions/aidial-auth-helper-*.tar /opt/epam/aidial/
RUN mv /opt/epam/aidial/aidial-auth-helper-*/* /opt/epam/aidial/
RUN rmdir /opt/epam/aidial/aidial-auth-helper-*
FROM gradle:8.3.0-jdk17-alpine as builder
COPY --from=cache /cache /home/gradle/.gradle
COPY --chown=gradle:gradle . /home/gradle/src
WORKDIR /home/gradle/src
RUN gradle --no-daemon build --stacktrace -PdisableCompression=true
RUN mkdir /build && tar -xf /home/gradle/src/build/distributions/aidial-auth-helper-*.tar --strip-components=1 -C /build

FROM eclipse-temurin:17-jdk-alpine

WORKDIR /opt/epam/aidial
astsiapanay marked this conversation as resolved.
Show resolved Hide resolved

RUN addgroup -S aidial --gid 1801 \
astsiapanay marked this conversation as resolved.
Show resolved Hide resolved
&& adduser -D -H -S aidial -G aidial -u 1801 \
&& chown aidial:aidial -R /opt/epam/aidial
&& adduser -D -H -S aidial -G aidial -u 1801

USER aidial
COPY --from=builder --chown=aidial:aidial /build/ .
astsiapanay marked this conversation as resolved.
Show resolved Hide resolved

WORKDIR /opt/epam/aidial
RUN chown -R aidial:aidial /opt/epam/aidial

USER aidial

ENTRYPOINT ["/opt/epam/aidial/bin/aidial-auth-helper"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Currently, AuthProxy provides two public routes:

# Developer env

- Open JDK 11+
- Gradle 7+
- Open JDK 17+
- Gradle 8+

# Build

Expand Down
Loading