Skip to content

Commit

Permalink
Update Semaphoreci images to ubuntu2204 (#5413)
Browse files Browse the repository at this point in the history
**Story card:**
[sc-12034](https://app.shortcut.com/simpledotorg/story/12034)

## Because

Ubuntu 18 is no longer supported by the Semaphore CI
  • Loading branch information
roypeter committed Apr 29, 2024
1 parent 15dec49 commit ec3f8da
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .semaphore/bangladesh_demo_deployment.yml
Expand Up @@ -13,8 +13,8 @@ blocks:
- script/argocd_deployment.sh $BD_STAGING_ARGOCD_ENDPOINT $ARGOCD_USERNAME $BD_STAGING_ARGOCD_PASSWORD $SEMAPHORE_GIT_SHA
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004
type: e2-standard-2
os_image: ubuntu2204
promotions:
- name: Bangladesh Production Deployment
pipeline_file: bangladesh_production_deployment.yml
Expand Down
4 changes: 2 additions & 2 deletions .semaphore/bangladesh_production_deployment.yml
Expand Up @@ -13,5 +13,5 @@ blocks:
- script/argocd_deployment.sh $BD_PROD_ARGOCD_ENDPOINT $ARGOCD_USERNAME $BD_PROD_ARGOCD_PASSWORD $SEMAPHORE_GIT_SHA
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004
type: e2-standard-2
os_image: ubuntu2204
4 changes: 2 additions & 2 deletions .semaphore/deploy.yml
Expand Up @@ -27,8 +27,8 @@ queue:
scope: project
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004
type: e2-standard-2
os_image: ubuntu2204
promotions:
- name: Bangladesh Demo Deployment
pipeline_file: bangladesh_demo_deployment.yml
Expand Down
4 changes: 2 additions & 2 deletions .semaphore/docker.yml
Expand Up @@ -22,8 +22,8 @@ queue:
scope: project
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004
type: e2-standard-2
os_image: ubuntu2204
promotions:
- name: Deploy
pipeline_file: deploy.yml
Expand Down
4 changes: 2 additions & 2 deletions .semaphore/ethiopia_demo_deployment.yml
Expand Up @@ -19,8 +19,8 @@ blocks:
- ssh-add ~/.ssh/semaphore_id_rsa
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
type: e2-standard-2
os_image: ubuntu2204
promotions:
- name: Ethiopia Production Deployment
pipeline_file: ethiopia_production_deployment.yml
Expand Down
4 changes: 2 additions & 2 deletions .semaphore/ethiopia_production_deployment.yml
Expand Up @@ -19,5 +19,5 @@ blocks:
- ssh-add ~/.ssh/semaphore_id_rsa
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
type: e2-standard-2
os_image: ubuntu2204
4 changes: 2 additions & 2 deletions .semaphore/india_demo_deployment.yml
Expand Up @@ -17,8 +17,8 @@ blocks:
- ssh-add ~/.ssh/semaphore_id_rsa
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
type: e2-standard-2
os_image: ubuntu2204
promotions:
- name: India Production Deployment
pipeline_file: india_production_deployment.yml
Expand Down
4 changes: 2 additions & 2 deletions .semaphore/india_production_deployment.yml
Expand Up @@ -13,5 +13,5 @@ blocks:
- script/argocd_deployment.sh $IN_PROD_ARGOCD_ENDPOINT $ARGOCD_USERNAME $IN_PROD_ARGOCD_PASSWORD $SEMAPHORE_GIT_SHA
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004
type: e2-standard-2
os_image: ubuntu2204
4 changes: 2 additions & 2 deletions .semaphore/semaphore.yml
Expand Up @@ -2,8 +2,8 @@ version: v1.0
name: Test simple-server
agent:
machine:
type: e1-standard-8
os_image: ubuntu1804
type: e2-standard-4
os_image: ubuntu2204
auto_cancel:
running:
when: "true"
Expand Down
4 changes: 2 additions & 2 deletions .semaphore/sri_lanka_demo_deployment.yml
Expand Up @@ -17,8 +17,8 @@ blocks:
- ssh-add ~/.ssh/semaphore_id_rsa
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
type: e2-standard-2
os_image: ubuntu2204
promotions:
- name: Sri Lanka Production Deployment
pipeline_file: sri_lanka_production_deployment.yml
Expand Down
4 changes: 2 additions & 2 deletions .semaphore/sri_lanka_production_deployment.yml
Expand Up @@ -13,5 +13,5 @@ blocks:
- script/argocd_deployment.sh $LK_ARGOCD_ENDPOINT $ARGOCD_USERNAME $LK_ARGOCD_PASSWORD $SEMAPHORE_GIT_SHA
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004
type: e2-standard-2
os_image: ubuntu2204
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -144,6 +144,6 @@ group :test do
gem "puma"
gem "rspec-sidekiq"
gem "simplecov", require: false
gem "webdrivers", ">= 5.2.0"
gem "webdrivers", ">= 5.3.1"
gem "webmock"
end
12 changes: 5 additions & 7 deletions Gemfile.lock
Expand Up @@ -135,7 +135,6 @@ GEM
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
childprocess (4.1.0)
choice (0.2.0)
chronic (0.10.2)
coderay (1.1.3)
Expand Down Expand Up @@ -585,8 +584,7 @@ GEM
activerecord (>= 4.0.0)
railties (>= 4.0.0)
scientist (1.6.3)
selenium-webdriver (4.5.0)
childprocess (>= 0.5, < 5.0)
selenium-webdriver (4.9.0)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
Expand Down Expand Up @@ -676,10 +674,10 @@ GEM
activemodel (>= 6.0.0)
bindex (>= 0.4.0)
railties (>= 6.0.0)
webdrivers (5.2.0)
webdrivers (5.3.1)
nokogiri (~> 1.6)
rubyzip (>= 1.3.0)
selenium-webdriver (~> 4.0)
selenium-webdriver (~> 4.0, < 4.11)
webmock (3.18.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
Expand All @@ -690,7 +688,7 @@ GEM
railties (>= 5.2)
semantic_range (>= 2.3.0)
webrick (1.8.1)
websocket (1.2.9)
websocket (1.2.10)
websocket-driver (0.7.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
Expand Down Expand Up @@ -831,7 +829,7 @@ DEPENDENCIES
uuidtools
view_component
web-console (>= 3.3.0)
webdrivers (>= 5.2.0)
webdrivers (>= 5.3.1)
webmock
webpacker (= 6.0.0.rc.6)
whenever
Expand Down
11 changes: 9 additions & 2 deletions script/semaphore_setup
Expand Up @@ -11,8 +11,14 @@ export DD_PROFILING_NO_EXTENSION=true
sem-version ruby 2.7.4
sem-service start postgres 14
sem-service start redis 5
wget -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb
sudo dpkg -i /tmp/libpng12.deb

# wkhtmltoimage-binary gem dependencies
sudo add-apt-repository ppa:linuxuprising/libpng12 -y
sudo apt update
sudo apt install libpng12-0 -y
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.0_1.0.1f-1ubuntu2_amd64.deb
sudo dpkg -i --force-all libssl1.0.0_1.0.1f-1ubuntu2_amd64.deb

gem install semaphore_test_boosters
cache restore
yarn install
Expand All @@ -22,4 +28,5 @@ bundle install
bundle exec rake db:setup
bundle exec rake db:test:prepare
RAILS_ENV="test" bundle exec rails db:refresh_matviews
RAILS_ENV="test" NODE_OPTIONS="--openssl-legacy-provider" bundle exec rake assets:precompile
cache store

0 comments on commit ec3f8da

Please sign in to comment.