Pull Request #292 [TBT-84] Enterprise merge (#291)

* Update OS for enterprise ship:docker

* security updates (#247)

* docker fix+trivy

* trivy fix

* Gem update 280721 (#250)

* security updates

* update to use latest docker

* nokogiri 1.12.5

* Upgrade gems (#256)

* Upgrade gems

Author: Maciej Kempin <maciej.kempin@coreservices.pl>

* rails 5.2.6.3

Co-authored-by: Maciej <maciej.kempin@coreservices.pl>

* gem updates (#257)

* rack update -> 2.2.3.1

* up trivy cmd

* job query optimization ship:docker (#260)

* activerecord bump

* BSFY-141 merge - add restarted by (#268)

* w/a (#272)

* master merge 25.10.22 (#276)

* rails-html-sanitizer 1.4.4

* up to pg12

* focal ship:docker

* check ship:docker

* .travis.yml partial revert

---------

Co-authored-by: Damian Szymanski <damian@assembla.com>
Co-authored-by: gabriel-arc <57348209+GbArc@users.noreply.github.com>
Co-authored-by: gabriel-arc <gabriel@travis-ci.org>
Co-authored-by: Maciej Kempin <makemp@users.noreply.github.com>
Co-authored-by: Maciej <maciej.kempin@coreservices.pl>
Co-authored-by: Sebastian Karpeta <sebastian@assmebla.com>
Co-authored-by: GbArc <gabriel.arczynski@devtactics.net>

Dominik avatar Dominik

Pull request event #3624.2 passed

  • Ran for
AMD64
no language set
Git
This is the configuration for all of build #3624, including this job
travis-ci/travis-migrations:.travis.yml@94f9da9
language: ruby

services:
  - postgresql

addons:
  - snaps:
    - name: docker
      channel: latest/beta
  - postgresql: "11"

cache:
  directories:
    - vendor/bundle

rvm: "3.2.2"

env:
  - RAILS_ENV=test
  - global:
    - PATH=/snap/bin:$PATH
before_install:
  - 'gem install bundler -v 2.4.17'

before_script:
  - cp db/main/structure.sql db/main/structure-original.sql
  - cp config/database.yml.travis config/database.yml

before_install:
  - gem install bundler:2.3.7

after_success:
  - script/upload_structure.rb

jobs:
  include:
    - stage: "Testing time"
      script:
        - bundle exec rspec spec
    - stage: "Ship to Quay.io"
      dist: focal
      before_script: echo skip
      after_success: echo skip
      script: make ship
      if: (branch = master and type = push ) OR commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true
before_install:
  - gem install rubygems-update -v 3.3.27
Build Config
{
  "language": "ruby",
  "os": [
    "linux"
  ],
  "dist": "xenial",
  "services": [
    "postgresql"
  ],
  "addons": {
    "snaps": [
      {
        "name": "docker",
        "channel": "latest/beta"
      }
    ]
  },
  "cache": {
    "directories": [
      "vendor/bundle"
    ]
  },
  "rvm": [
    "3.2.2"
  ],
  "env": "RAILS_ENV=test",
  "before_install": [
    "gem install rubygems-update -v 3.3.27"
  ],
  "before_script": [
    "cp db/main/structure.sql db/main/structure-original.sql",
    "cp config/database.yml.travis config/database.yml"
  ],
  "after_success": [
    "script/upload_structure.rb"
  ],
  "jobs": {
    "include": [
      {
        "stage": "Testing time",
        "script": [
          "bundle exec rspec spec"
        ]
      },
      {
        "stage": "Ship to Quay.io",
        "dist": "focal",
        "before_script": [
          "echo skip"
        ],
        "after_success": [
          "echo skip"
        ],
        "script": [
          "make ship"
        ],
        "if": "(branch = master and type = push ) OR commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true"
      }
    ]
  }
}