Skip to content

Commit

Permalink
feat: fix cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Matheusafonsouza committed Jan 10, 2025
1 parent eccf54f commit 40b78a0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,15 @@ on:
- main
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-latest # Setup an environment to run the action
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Build, Push and Release a Docker container to Heroku.
uses: gonuit/heroku-docker-deploy@v1.3.3
- uses: actions/checkout@v2 # This actions copy the repository on the environment
- name: Install Heroku CLI
run: |
curl https://cli-assets.heroku.com/install.sh | sh
- uses: akhileshns/heroku-deploy@v3.12.12 # This action deploys the content on Heroku
with:
email: ${{ secrets.LIVRO_LIVRE_HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.LIVRO_LIVRE_HEROKU_API_KEY }}
heroku_app_name: "livro-livre-users"
dockerfile_directory: ./
dockerfile_name: Dockerfile
docker_options: "--no-cache"
process_type: web
heroku_api_key: ${{secrets.LIVRO_LIVRE_HEROKU_API_KEY}} #The Heroku api key we stored on our repo secret
heroku_app_name: "livro-livre-users" #The name of your heroku app - Must be unique in Heroku
heroku_email: "[email protected]" #Your heroku yuser name
usedocker: true
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ COPY . .
RUN npm run build

# Expose the port the app will listen on
EXPOSE 80
EXPOSE 3000

# Define the command to start the app
Expand Down
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

3 changes: 3 additions & 0 deletions heroku.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build:
docker:
web: Dockerfile

0 comments on commit 40b78a0

Please sign in to comment.