From 2458682a870d75d4d5579093bf7028b9828149e1 Mon Sep 17 00:00:00 2001 From: Krishna-Chavan <87810744+Krishna-Chavan@users.noreply.github.com> Date: Wed, 16 Mar 2022 20:10:26 +0530 Subject: [PATCH 1/4] Update Dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5469602..0e5e1b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,10 @@ FROM node:latest as node WORKDIR /app COPY . . +RUN npm install -g @angular/cli RUN npm install -RUN npm run build --prod +RUN ng build --prod # stage 2 FROM nginx:alpine -COPY --from=node /app/dist/angular-app /usr/share/nginx/html \ No newline at end of file +COPY --from=node /app/dist/angular-app /usr/share/nginx/html From 67081c321bfcfdd1104176587f14428030178e35 Mon Sep 17 00:00:00 2001 From: Krishna-Chavan <87810744+Krishna-Chavan@users.noreply.github.com> Date: Mon, 5 Aug 2024 12:38:04 +0530 Subject: [PATCH 2/4] code from convertor --- .github/workflows/jenkinsfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/jenkinsfile diff --git a/.github/workflows/jenkinsfile b/.github/workflows/jenkinsfile new file mode 100644 index 0000000..0d1f69c --- /dev/null +++ b/.github/workflows/jenkinsfile @@ -0,0 +1,17 @@ +pipeline { + agent any + + stages { + stage('Build') { + steps { + script { + def imageName = "my-docker-image" + def imageTag = "${env.BUILD_NUMBER}" + + // Build the Docker image + sh "docker build -t ${imageName}:${imageTag} ." + } + } + } + } +} \ No newline at end of file From 89871449112c2535e4f796e6b045baf0f4788054 Mon Sep 17 00:00:00 2001 From: Krishna-Chavan <87810744+Krishna-Chavan@users.noreply.github.com> Date: Mon, 5 Aug 2024 12:40:50 +0530 Subject: [PATCH 3/4] github to gitlab From 2435341a0d58c3e7c1b956da54b5e904a8b05305 Mon Sep 17 00:00:00 2001 From: Krishna-Chavan <87810744+Krishna-Chavan@users.noreply.github.com> Date: Mon, 5 Aug 2024 13:20:07 +0530 Subject: [PATCH 4/4] upload --- .github/workflows/jenkinstogithub.yaml | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/jenkinstogithub.yaml diff --git a/.github/workflows/jenkinstogithub.yaml b/.github/workflows/jenkinstogithub.yaml new file mode 100644 index 0000000..7fe71af --- /dev/null +++ b/.github/workflows/jenkinstogithub.yaml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: '11' + + - name: Build and test + run: | + ./gradlew clean build + + - name: Publish artifacts + uses: actions/upload-artifact@v2 + with: + name: jar + path: build/libs/*.jar \ No newline at end of file