Skip to content

Commit

Permalink
Merge pull request #50 from adr29truck/enhancement/auto-deploy
Browse files Browse the repository at this point in the history
Update deployment functionality
  • Loading branch information
adr29truck authored Mar 16, 2021
2 parents 6561ca5 + 22bddb8 commit 9a76a27
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 34 deletions.
25 changes: 4 additions & 21 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v2


### ⬇ IMPORTANT PART ⬇ ###

- name: Build, Push and Release a Docker container to Heroku. # Your custom step name
uses: gonuit/heroku-docker-deploy@v1.2.0 # GitHub action name (leave it as it is).
uses: gonuit/heroku-docker-deploy@v1.3.2 # 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.
email: ${{ secrets.HEROKU_EMAIL }}
# If you don't want to use repository secrets (which is recommended) you can do:
# email: my.email@example.com

# 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 }}

# Dokerfile name. Optional, by default will be set to "Dockerfile".
dockerfile_directory: ./
dockerfile_name: dockerfile

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

# Dokerfile directory.
# For example, if you have a Dockerfile in the root of your project, leave it as follows:
dockerfile_directory: ./

### ⬆ IMPORTANT PART ⬆ ###
process_type: web

17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@ jobs:
description:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
-
name: Update repo description
uses: peter-evans/dockerhub-description@v2.4.1
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
DOCKERHUB_REPOSITORY: adr29truck/expressscraper
- uses: actions/checkout@v2
- name: Update repo description
uses: peter-evans/dockerhub-description@v2.4.2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: adr29truck/expressscraper
readme-filepath: ./README.md
3 changes: 1 addition & 2 deletions .github/workflows/rubopcop.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

name: RuboCop

on: [push, pull_request]

on: push
jobs:
build:
runs-on: macos-10.15
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Tests

on:
pull_request:
push:

jobs:
Expand All @@ -21,4 +20,4 @@ jobs:
- name: Test with Rake
run: |
bundle install --jobs 4 --retry 3
bundle exec rake -t
bundle exec rake -t

0 comments on commit 9a76a27

Please sign in to comment.