Skip to content

Commit

Permalink
Reorganize repository structure, use only one deployable application …
Browse files Browse the repository at this point in the history
…instead of two
  • Loading branch information
Pozo committed Jul 3, 2024
1 parent 47ac257 commit adad0d6
Show file tree
Hide file tree
Showing 53 changed files with 228 additions and 715 deletions.
70 changes: 0 additions & 70 deletions .github/workflows/deploy-grabber.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
branches:
- main
push:
paths:
- api/**
branches:
- main

Expand Down Expand Up @@ -37,7 +35,6 @@ jobs:
id: build-and-push-api-docker-image
uses: docker/build-push-action@v5
with:
file: Dockerfile-api
push: true
tags: |
${{ secrets.AWS_ECR_REPOSITORY }}/investmentfunds/api:latest
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,5 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Build grabber Docker image
uses: docker/build-push-action@v5
with:
file: Dockerfile-api

- name: Build api Docker image
uses: docker/build-push-action@v5
with:
file: Dockerfile-grabber
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
isin-list
/build/
notes
.idea/
*.iml
*.mwb.bak
/velocity.log
target
out
.java-version
*/.terragrunt-cache
*/.terragrunt-cache
*/.clasp.json
6 changes: 2 additions & 4 deletions Dockerfile-api → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@ FROM maven:3.8.5-amazoncorretto-17 AS build

WORKDIR /app

COPY api api
COPY domain domain
COPY grabber grabber
COPY src src
COPY pom.xml .

RUN mvn clean package
FROM amazoncorretto:17-alpine-jdk

WORKDIR /app

COPY --from=build /app/api/target/api*.jar app.jar
COPY --from=build /app/target/api*.jar app.jar
EXPOSE 8080

ENV JAVA_OPTS=""
Expand Down
18 changes: 0 additions & 18 deletions Dockerfile-grabber

This file was deleted.

21 changes: 0 additions & 21 deletions HELP.md

This file was deleted.

File renamed without changes.
131 changes: 0 additions & 131 deletions api/pom.xml

This file was deleted.

2 changes: 0 additions & 2 deletions api/src/main/resources/application.properties

This file was deleted.

Loading

0 comments on commit adad0d6

Please sign in to comment.