Skip to content

Commit

Permalink
Added: CI
Browse files Browse the repository at this point in the history
  • Loading branch information
djuarezgf committed May 17, 2024
1 parent 6b5b48d commit 4c6572a
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 13 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docker CI

on:
push:
branches:
- main
- develop
# Build then a new version is tagged
tags:
- '*.*.*'
pull_request:
branches:
- main
- develop
schedule:
# Build every night at 1am
- cron: '0 1 * * *'
jobs:
build:
uses: samply/github-workflows/.github/workflows/docker-ci.yml@main
with:
image-name: "samply/feedback-agent-ui"
push-to: dockerhub
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Change Log
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.0.1 - 2024-05-17]
### Added
- CI
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
FROM openjdk:17-oracle
ARG JAR_FILE=*.jar
COPY ${JAR_FILE} application.jar
ENTRYPOINT ["java", "-jar", "application.jar"]
FROM node:14-alpine
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install
COPY frontend .

RUN npm run build

CMD npm run serve -- --port 8096
9 changes: 0 additions & 9 deletions Dockerfile_fba

This file was deleted.

0 comments on commit 4c6572a

Please sign in to comment.