Skip to content

Commit

Permalink
Merge pull request #1100 from gmmcal/deploy-docker
Browse files Browse the repository at this point in the history
Deploy to production with docker
  • Loading branch information
gmmcal authored Oct 18, 2023
2 parents b05ca70 + 17372d1 commit 0976bf9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY_STAGING }}
DEPLOY_SERVICE: ${{ secrets.DEPLOY_SERVICE_STAGING }}
run: |
curl -v "https://api.render.com/deploy/srv-$DEPLOY_SERVICE?key=$DEPLOY_KEY&ref=$GITHUB_SHA"
curl -v "https://api.render.com/deploy/srv-$DEPLOY_SERVICE?key=$DEPLOY_KEY"
deploy_production:
name: 'Deploy: Production'
Expand All @@ -51,4 +51,4 @@ jobs:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY_PRODUCTION }}
DEPLOY_SERVICE: ${{ secrets.DEPLOY_SERVICE_PRODUCTION }}
run: |
curl -v "https://api.render.com/deploy/srv-$DEPLOY_SERVICE?key=$DEPLOY_KEY&ref=$GITHUB_SHA"
curl -v "https://api.render.com/deploy/srv-$DEPLOY_SERVICE?key=$DEPLOY_KEY"
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ jobs:
context: .
target: ${{ inputs.target }}
tags: ${{ inputs.tag-name }}:${{ inputs.target }}
cache-from: type=registry,ref=gmmcal/gmmcal:buildcache
cache-to: type=registry,ref=gmmcal/gmmcal:buildcache,mode=max
cache-from: type=registry,ref=gmmcal/gmmcal:buildcache${{ inputs.target }}
cache-to: type=registry,ref=gmmcal/gmmcal:buildcache${{ inputs.target }},mode=max
5 changes: 3 additions & 2 deletions render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ services:
- type: web
name: gustavocunha
env: ruby
buildCommand: "bundle install; bundle exec rake assets:precompile; bundle exec rake assets:clean; bundle exec rake db:migrate db:cache:clear;"
startCommand: "bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-production}"
runtime: image
image:
url: gmmcal/gmmcal:production
autoDeploy: false
pullRequestPreviewsEnabled: false
plan: free
Expand Down

0 comments on commit 0976bf9

Please sign in to comment.