- 
                Notifications
    
You must be signed in to change notification settings  - Fork 172
 
Add Heroku deployment and support to CI/CD with Github Actions #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Open
      
      
            waldemarnt
  wants to merge
  12
  commits into
  master
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
heroku-ci-cd
  
      
      
   
  
    
  
  
  
 
  
      
    base: master
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
  
     Open
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            12 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      dd9fea5
              
                Add changes to enable heroku to build ts
              
              
                waldemarnt 4c605e0
              
                Change APP_PORT to PORT for heroku
              
              
                waldemarnt 1dca79d
              
                Add test heroku deploy
              
              
                waldemarnt efd48e9
              
                Upgrade node version
              
              
                waldemarnt accec3d
              
                Ensure at least Node 12 is available
              
              
                waldemarnt 9022589
              
                Update pipeline logic
              
              
                waldemarnt d6ca68a
              
                Add support to master branch
              
              
                waldemarnt 4b967bb
              
                Update git checkout
              
              
                waldemarnt bdd347f
              
                Release test heroku
              
              
                waldemarnt 58e25a1
              
                Change version back to 0
              
              
                waldemarnt 01bed97
              
                Delete unncessary scripts
              
              
                waldemarnt 5fa6b3b
              
                Add support only to node 12
              
              
                waldemarnt File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or 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 | 
|---|---|---|
| 
          
            
          
           | 
    @@ -3,7 +3,15 @@ | |
| 
     | 
||
| name: Complete workflow | ||
| 
     | 
||
| on: ['push', 'pull_request'] | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - master | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| - master | ||
| 
     | 
||
| jobs: | ||
| 
     | 
||
| 
        
          
        
         | 
    @@ -18,7 +26,6 @@ jobs: | |
| 
     | 
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - run: git fetch --prune --unshallow | ||
| 
     | 
||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v1 | ||
| 
        
          
        
         | 
    @@ -36,15 +43,11 @@ jobs: | |
| - name: Run all tests | ||
| run: yarn test | ||
| 
     | 
||
| - shell: bash | ||
| if: github.ref == 'refs/heads/master' | ||
| name: Create SSH deployment key | ||
| env: | ||
| SSH_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | ||
| run: ./scripts/deploy.sh | ||
| 
     | 
||
| - name: Deployment | ||
| if: github.ref == 'refs/heads/master' | ||
| run: git remote add umbler ssh://[email protected]:9922/jy4xooxj/waldemarnt2-com.git && git push umbler master | ||
| env: | ||
| CI: true | ||
| - name: Deploy application | ||
| if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }} | ||
| uses: akhileshns/[email protected] | ||
| with: | ||
| heroku_api_key: ${{secrets.HEROKU_API_KEY}} | ||
| heroku_app_name: "peaceful-plateau-04699" | ||
| heroku_email: "[email protected]" | ||
| buildpack: "https://github.com/zidizei/heroku-buildpack-tsc#v2.0" | ||
  
    
      This file contains hidden or 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 | 
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "App": { | ||
| "port": "APP_PORT", | ||
| "port": "PORT", | ||
| "database": { | ||
| "mongoUrl": "MONGODB_URL" | ||
| }, | ||
| 
          
            
          
           | 
    ||
  
    
      This file contains hidden or 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
    
  
  
    
              This file was deleted.
      
      Oops, something went wrong.
      
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.