Skip to content

Commit

Permalink
and again
Browse files Browse the repository at this point in the history
  • Loading branch information
kenlight-bu committed Sep 27, 2024
1 parent 2953188 commit 978a713
Showing 1 changed file with 70 additions and 14 deletions.
84 changes: 70 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,74 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Print Working Directory and List Files
run: |
echo "Current Directory: $(pwd)"
echo "Listing all files in $(pwd):"
ls -R
- name: Build, Push and Deploy to Heroku #set the whatever name you want to this step
id: heroku
uses: snithyanantham/[email protected] # use the latest version of the action
- name: Build, Push and Release a Docker server container to Heroku. # Your custom step name
uses: gonuit/[email protected] # GitHub action name (leave it as it is).
with:
app_name: "peak-performance"
email: ${{ secrets.HEROKU_EMAIL }} # your heroku email
api_key: ${{ secrets.HEROKU_API_KEY }} # your heroku api key
docker_compose_file: './code/docker-compose-production.yml' # set the path to the folder where the docker-compose file is located
heroku_apps: '[{"imagename":"api-production","appname":"peak-performance","apptype":"web"},{"imagename":"client-production","appname":"peak-performance","apptype":"web"}]' # List of Docker Image name, Heroku app and Heroku app type
# Below you must provide variables for your Heroku app.

# The email address associated with your Heroku account.
# If you don't want to use repository secrets (which is recommended) you can do:
# email: [email protected]
email: ${{ secrets.HEROKU_EMAIL }}

# Heroku API key associated with provided user's email.
# Api Key is available under your Heroku account settings.
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}

# Name of the heroku application to which the build is to be sent.
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}

# (Optional, default: "./")
# Dockerfile directory.
# For example, if you have a Dockerfile in the root of your project, leave it as follows:
dockerfile_directory: ./code/server/

# (Optional, default: "Dockerfile")
# Dockerfile name.
dockerfile_name: Dockerfile.production

# (Optional, default: "")
# Additional options of docker build command.
docker_options: "--no-cache"

# (Optional, default: "web")
# Select the process type for which you want the docker container to be uploaded.
# By default, this argument is set to "web".
# For more information look at https://devcenter.heroku.com/articles/process-model
process_type: web

- name: Build, Push and Release a Docker client container to Heroku. # Your custom step name
uses: gonuit/[email protected] # GitHub action name (leave it as it is).
with:
# Below you must provide variables for your Heroku app.

# The email address associated with your Heroku account.
# If you don't want to use repository secrets (which is recommended) you can do:
# email: [email protected]
email: ${{ secrets.HEROKU_EMAIL }}

# Heroku API key associated with provided user's email.
# Api Key is available under your Heroku account settings.
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}

# Name of the heroku application to which the build is to be sent.
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}

# (Optional, default: "./")
# Dockerfile directory.
# For example, if you have a Dockerfile in the root of your project, leave it as follows:
dockerfile_directory: ./code/client/

# (Optional, default: "Dockerfile")
# Dockerfile name.
dockerfile_name: Dockerfile.production

# (Optional, default: "")
# Additional options of docker build command.
docker_options: "--no-cache"

# (Optional, default: "web")
# Select the process type for which you want the docker container to be uploaded.
# By default, this argument is set to "web".
# For more information look at https://devcenter.heroku.com/articles/process-model
process_type: web

0 comments on commit 978a713

Please sign in to comment.