Skip to content

Commit 4ba3b7b

Browse files
authored
ci: fix docker build (#6)
* 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
1 parent 23d06c6 commit 4ba3b7b

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/release.yml

+30-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,37 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13+
- name: Set up Ruby
14+
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
15+
with:
16+
ruby-version: '2.4.4'
1317
- name: Build the Docker image
14-
run: docker build . --file Dockerfile --tag gotocompany/gate:${{ github.ref_name }}
18+
env:
19+
GATE_SERVER_URL: gate.server/url
20+
SIGN_IN_TYPE: ''
21+
GATE_OAUTH_CLIENT_ID: totally_secret_client_id
22+
GATE_OAUTH_CLIENT_SECRET: totally_secret
23+
GATE_HOSTED_DOMAIN: gate.domain
24+
GATE_HOSTED_DOMAINS: test1.com,test2.com
25+
GATE_DB_HOST: localhost
26+
GATE_DB_PORT: 3306
27+
GATE_DB_NAME: ''
28+
GATE_DB_USER: root
29+
GATE_DB_PASSWORD: ''
30+
CACHE_HOST: localhost
31+
CACHE_PORT: 6379
32+
SECRET_KEY_BASE: ''
33+
SECRET_API_KEY: ''
34+
GATE_CONFIG_SECRET: gate_pw_secret
35+
USER_ROLES: employee,consultant
36+
UID_BUFFER: 5000
37+
DEFAULT_HOST_PATTERN: s*
38+
PRODUCT_LIST: pr1,pr2
39+
SAML_APPS: datadog
40+
run: |
41+
bundle install --without development
42+
RAILS_ENV=production bundle exec rake assets:precompile
43+
docker build . --file Dockerfile --tag gotocompany/gate:${{ github.ref_name }}
1544
- name: Login to DockerHub
1645
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
1746
- name: Push Docker image

0 commit comments

Comments
 (0)