Skip to content

Commit 5f52bac

Browse files
author
vitalie
committed
Fix build
1 parent 67f1396 commit 5f52bac

File tree

7 files changed

+35
-15
lines changed

7 files changed

+35
-15
lines changed

.travis.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@ jobs:
3232
- stage: test
3333
env:
3434
script: ./script/validate-example-payloads-with-docker
35+
3536
- stage: ':ship: it to quay.io'
3637
env:
3738
script: ./script/docker-build-and-push
3839
if: (branch = master and type = push ) OR commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true
3940

41+
before_install:
42+
- gem update --silent --system 3.3.26
43+
4044
before_script:
41-
- "gem install bundler -v 1.17.3"
4245
- eval "$(script/handle-docker-config)"
4346
- bundle install
4447
- bundle exec rake clean assets:precompile
@@ -57,7 +60,6 @@ after_failure: bundle exec rake dump_examples_logs
5760
before_deploy:
5861
- sudo pip install -U -I Pygments
5962
- ./script/build-s3-index-html
60-
- "gem install bundler -v 1.17.3"
6163

6264
deploy:
6365
provider: s3

Dockerfile

+18-4
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,41 @@
11
FROM ruby:2.5.8 as builder
2-
WORKDIR /app
32

43
ARG GITHUB_OAUTH_TOKEN=notset
54

5+
RUN gem update --silent --system 3.3.26
6+
7+
WORKDIR /app
8+
9+
COPY .ruby-version Gemfile Gemfile.lock ./
10+
11+
RUN bundle install --frozen --deployment --without='development test' --clean
12+
613
COPY . .
714

815
RUN git describe --always --dirty --tags | tee VERSION
916
RUN git rev-parse --short HEAD | tee BUILD_SLUG_COMMIT
1017
RUN rm -rf .git
11-
RUN bundle install --frozen --deployment --without='development test' --clean
18+
1219
RUN bundle exec rake assets:precompile GITHUB_OAUTH_TOKEN=$GITHUB_OAUTH_TOKEN
1320
RUN tar -cjf public.tar.bz2 public && rm -rf public
1421

22+
1523
FROM ruby:2.5.8-slim
24+
1625
LABEL maintainer Travis CI GmbH <[email protected]>
17-
WORKDIR /app
1826

1927
ENV TRAVIS_BUILD_DUMP_BACKTRACE true
2028
ENV PORT 4000
2129

30+
RUN gem update --silent --system 3.3.26
31+
32+
WORKDIR /app
33+
2234
COPY --from=builder /app /app
2335
COPY --from=builder /usr/local/bundle/config /usr/local/bundle/config
2436

2537
HEALTHCHECK --interval=5s CMD script/healthcheck
26-
EXPOSE 4000/tcp
38+
39+
EXPOSE $PORT/tcp
40+
2741
CMD ["script/server"]

Gemfile.lock

+4-1
Original file line numberDiff line numberDiff line change
@@ -271,5 +271,8 @@ DEPENDENCIES
271271
travis-support!
272272
webmock
273273

274+
RUBY VERSION
275+
ruby 2.5.8p224
276+
274277
BUNDLED WITH
275-
1.17.3
278+
2.3.26

docker-compose.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: "2.1"
21
services:
32
web:
43
build:

lib/travis/build/rake_tasks.rb

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
require 'json'
44
require 'logger'
5+
require 'tmpdir'
56
require 'pathname'
67
require 'date'
78

public/version-aliases/ghc.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@
166166
"9.0.1-alpha1": "9.0.1-alpha1",
167167
"9.0": "9.0.2",
168168
"9.0.1": "9.0.1",
169-
"9": "9.6.0.20230302",
170-
"9.x": "9.6.0.20230302",
171-
"9.x.x": "9.6.0.20230302",
169+
"9": "9.6.1",
170+
"9.x": "9.6.1",
171+
"9.x.x": "9.6.1",
172172
"9.0.x": "9.0.2",
173173
"9.0.2": "9.0.2",
174174
"9.2.1-alpha1": "9.2.1-alpha1",
@@ -192,12 +192,13 @@
192192
"9.4.3": "9.4.3",
193193
"9.4.4": "9.4.4",
194194
"9.6.0.20230111": "9.6.0.20230111",
195-
"9.6.x": "9.6.0.20230302",
196-
"9.6": "9.6.1-alpha3",
195+
"9.6.x": "9.6.1",
196+
"9.6": "9.6.1",
197197
"9.6.0.20230128": "9.6.0.20230128",
198198
"9.6.0.20230210": "9.6.0.20230210",
199199
"9.6.0.20230302": "9.6.0.20230302",
200200
"9.6.1-alpha1": "9.6.1-alpha1",
201201
"9.6.1-alpha2": "9.6.1-alpha2",
202-
"9.6.1-alpha3": "9.6.1-alpha3"
202+
"9.6.1-alpha3": "9.6.1-alpha3",
203+
"9.6.1": "9.6.1"
203204
}

script/docker-build-and-push

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -ev
44

55
app_name="web"
6-
local_image="travis-build_${app_name}"
6+
local_image="travis-build-${app_name}"
77
quay_image=quay.io/travisci/travis-build
88

99
unset DOCKER_CERT_PATH

0 commit comments

Comments
 (0)