Skip to content

Commit

Permalink
Merge pull request #17 from Kerosene-Labs/update-workflow
Browse files Browse the repository at this point in the history
Update workflow
  • Loading branch information
hlafaille authored Dec 12, 2024
2 parents 6e344c6 + a4e7223 commit c8f9eee
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Deploy
name: SDLC
on:
release:
types:
Expand All @@ -8,11 +8,27 @@ on:
- main

jobs:
codeql:
runs-on: ubuntu-latest
steps:
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: 'java,css,html,js' # Specify your project's languages
# database: './codeql-db' # Optional: Customize the database location

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: '/language-security-and-quality' # Customize category if needed

build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs:
- codeql
steps:
- uses: actions/checkout@v4

Expand Down
3 changes: 2 additions & 1 deletion dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM ubuntu:24.04
ARG PROJECT_VERSION=0.0.0

# update, upgrade, install java
RUN apt-get update && apt-get upgrade -y
RUN apt-get install openjdk-21-jre-headless -y

# copy the app
RUN mkdir /app
COPY billtracker-0.0.1.jar /app/app.jar
COPY billtracker-${PROJECT_VERSION}.jar /app/app.jar

# run the app
WORKDIR /app
Expand Down

0 comments on commit c8f9eee

Please sign in to comment.