Skip to content

Commit

Permalink
Add config.host
Browse files Browse the repository at this point in the history
  • Loading branch information
vnntsu committed Jan 19, 2024
1 parent 4e99157 commit cfd7689
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
with:
ref: ${{ github.event.workflow_run.head_branch || github.ref }}

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Set BRANCH_TAG
uses: nimblehq/branch-tag-action@v1
Expand Down Expand Up @@ -70,19 +70,14 @@ jobs:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_TOKEN }}

# - name: Docker build and push
# uses: docker/build-push-action@v5
# with:
# context: .
# push: true
# tags: ${{ env.DOCKER_IMAGE_TAG }}
# cache-from: type=gha
# cache-to: type=gha,mode=max
- name: Build Docker image
run: |
bin/docker-prepare
docker-compose build
docker-compose push web
- name: Docker build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.DOCKER_IMAGE_TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Log in to Heroku container
run: heroku container:login
Expand Down
1 change: 1 addition & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require "active_support/core_ext/integer/time"

Rails.application.configure do
config.hosts = ['survey-api-staging.nimblehq.co', 'https://survey-api.nimblehq.co']
# Settings specified here will take precedence over those in config/application.rb.

# In the development environment your application's code is reloaded any time
Expand Down

0 comments on commit cfd7689

Please sign in to comment.