Skip to content

Commit

Permalink
trying new copy path
Browse files Browse the repository at this point in the history
  • Loading branch information
vegarrsm committed Sep 5, 2023
1 parent 48b9b0e commit e986f48
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 16 additions & 0 deletions dockerfile
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 removed example-app/dockerfile
Empty file.

0 comments on commit e986f48

Please sign in to comment.