Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build[SIGBMWDEX-170]: SLC-29-Approved-build-container #781

Merged
merged 7 commits into from
May 17, 2024
18 changes: 17 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ executors:
resource_class: medium

commands:

install_tools:
steps:
- run:
name: "Install tools"
command: |
apt-get -y update && apt-get install -y git curl gpg
# cypress requirements
apt-get -y install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb

fortify_scan:
parameters:
build_id:
Expand Down Expand Up @@ -44,7 +54,8 @@ references:
defaults: &defaults
working_directory: ~/repo
docker:
- image: cimg/node:20.11-browsers
# use SAP Approved Build Container for gradle / jdk
- image: node:20-slim

restore_cache: &restore_cache
restore_cache:
Expand All @@ -59,6 +70,7 @@ jobs:

steps:
- checkout
- install_tools

- *restore_cache

Expand All @@ -75,6 +87,7 @@ jobs:

steps:
- checkout
- install_tools

- *restore_cache

Expand All @@ -86,6 +99,7 @@ jobs:
<<: *defaults
steps:
- checkout
- install_tools

- *restore_cache

Expand All @@ -97,6 +111,7 @@ jobs:
<<: *defaults
steps:
- checkout
- install_tools
- *restore_cache
- run:
name: Fix host authenticity for github.com
Expand All @@ -120,6 +135,7 @@ jobs:
<<: *defaults
steps:
- checkout
- install_tools
- *restore_cache
- run:
name: Define environment variable with lastest commit's message
Expand Down