Skip to content

Commit

Permalink
ci: fix docker build (#6)
Browse files Browse the repository at this point in the history
* ci: revert dockerfile

* fix: use bundler v 2.3.27

* Revert "fix: use bundler v 2.3.27"

This reverts commit fb80128.

* Revert "ci: revert dockerfile"

This reverts commit ef69bbe.

* ci: run bundle install before docker build

* ci: trigger release

* ci: setup ruby

* ci: use ruby 2.4.4

* ci: update bundle install command

* ci: add env

* ci: add dummy config

* ci: revert release trigger
  • Loading branch information
rahmatrhd authored Jul 31, 2024
1 parent 23d06c6 commit 4ba3b7b
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,37 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
with:
ruby-version: '2.4.4'
- name: Build the Docker image
run: docker build . --file Dockerfile --tag gotocompany/gate:${{ github.ref_name }}
env:
GATE_SERVER_URL: gate.server/url
SIGN_IN_TYPE: ''
GATE_OAUTH_CLIENT_ID: totally_secret_client_id
GATE_OAUTH_CLIENT_SECRET: totally_secret
GATE_HOSTED_DOMAIN: gate.domain
GATE_HOSTED_DOMAINS: test1.com,test2.com
GATE_DB_HOST: localhost
GATE_DB_PORT: 3306
GATE_DB_NAME: ''
GATE_DB_USER: root
GATE_DB_PASSWORD: ''
CACHE_HOST: localhost
CACHE_PORT: 6379
SECRET_KEY_BASE: ''
SECRET_API_KEY: ''
GATE_CONFIG_SECRET: gate_pw_secret
USER_ROLES: employee,consultant
UID_BUFFER: 5000
DEFAULT_HOST_PATTERN: s*
PRODUCT_LIST: pr1,pr2
SAML_APPS: datadog
run: |
bundle install --without development
RAILS_ENV=production bundle exec rake assets:precompile
docker build . --file Dockerfile --tag gotocompany/gate:${{ github.ref_name }}
- name: Login to DockerHub
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push Docker image
Expand Down

0 comments on commit 4ba3b7b

Please sign in to comment.