-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,17 +55,24 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download production-ready build files | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: example-app | ||
|
||
- name: Deploy to Heroku | ||
uses: akhileshns/[email protected] | ||
- name: print ls | ||
run: ls -la | ||
|
||
- name: print ls | ||
run: ls -la example-app | ||
|
||
- name: Build, Push and Release a Docker container to Heroku | ||
uses: gonuit/[email protected] | ||
with: | ||
heroku_api_key: ${{secrets.HEROKU_API_KEY}} | ||
heroku_app_name: "jobjugglerapi" | ||
heroku_email: "[email protected]" | ||
email: ${{ secrets.HEROKU_EMAIL }} | ||
heroku_api_key: ${{ secrets.HEROKU_API_KEY }} | ||
heroku_app_name: jobjugglerapi | ||
dockerfile_directory: ./ | ||
dockerfile_name: dockerfile | ||
docker_options: "--no-cache" | ||
process_type: web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Use the official OpenJDK base image | ||
FROM openjdk:17-jdk-slim | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /app | ||
|
||
RUN ls -al /app | ||
COPY ./*.md /app/RD.md | ||
COPY ./example-app-main-SNAPSHOT.jar /app/app.jar | ||
|
||
RUN ls -al /app | ||
|
||
EXPOSE 8081 | ||
|
||
# Command to run the application | ||
CMD ["java", "-jar", "/app/app.jar"] |
Empty file.