CI Deployment
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0) (push) Failing after 12s

This commit is contained in:
Braydon 2024-04-07 00:27:09 -04:00
parent 151c942c60
commit fbd8925668
3 changed files with 50 additions and 0 deletions

@ -0,0 +1,32 @@
name: Deploy App
on:
push:
branches: ["master"]
paths-ignore:
- README.md
- LICENSE
- docker-compose.yml
jobs:
docker:
strategy:
matrix:
arch: ["ubuntu-latest"]
git-version: ["2.44.0"]
runs-on: ${{ matrix.arch }}
# Steps to run
steps:
# Checkout the repo
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# Deploy to Dokku
- name: Deploy to Dokku
uses: dokku/github-action@master
with:
git_remote_url: "ssh://dokku@10.10.3.28:22/RESTfulMC"
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}

16
Dockerfile Normal file

@ -0,0 +1,16 @@
FROM openjdk:17-jdk-slim
# Copy project files
COPY . .
# Build the app
RUN mvn clean package
# Exposting on port 80 so we can
# access via a reverse proxy for Dokku
ENV HOSTNAME "0.0.0.0"
EXPOSE 80
ENV PORT 80
# Start the app
CMD ["java", "-jar", "target/RESTfulMC.jar"]

@ -25,7 +25,9 @@
<!-- Build Steps -->
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<!-- Spring -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>