1
1
2
2
.decrypt-files : &decrypt-files
3
3
before_script :
4
- - |
5
- FILES=(${DECRYPT_FILES//,/ }) # Split comma-separated files into an array
6
- for FILE in "${FILES[@]}"; do
7
- echo "Decrypting $FILE..."
8
- # ... (your decryption logic for $FILE - e.g., using openssl, sops, etc.) ...
9
- done
4
+ - echo "Decrypting files..."
10
5
11
6
.docker-setup : &docker-setup
12
7
before_script :
13
8
- echo "Setting up Docker..."
14
- # ... (your Docker setup commands - e.g., docker login, etc.) ...
15
9
16
10
.silta-setup : &silta-setup
17
11
script :
18
12
- echo "Setting up Silta..."
19
- # ... (your Silta setup commands using $RELEASE_SUFFIX and $CUSTOM_PROXY_COMMAND) ...
20
- # Example:
21
- - |
22
- if [[ -n "$CUSTOM_PROXY_COMMAND" ]]; then
23
- eval "$CUSTOM_PROXY_COMMAND"
24
- else
25
- silta config set proxy "YOUR_PROXY_SETTING" # Replace with your proxy setting
26
- fi
27
- silta init # Or other silta commands as needed
28
13
29
14
.drupal-docker-build : &drupal-docker-build
30
15
script :
31
16
- echo "Building Drupal Docker images..."
32
- # ... (your Drupal Docker build commands using $NGINX_BUILD_CONTEXT, $IMAGE_BUILD_BACKGROUND, and $IMAGE_BUILD_WAIT) ...
33
- # Example (adapt as needed):
34
- - docker build -t drupal-nginx:$CI_COMMIT_SHA -f $NGINX_BUILD_CONTEXT/Dockerfile .
35
- - docker build -t drupal-php:$CI_COMMIT_SHA -f Dockerfile-php .
36
- # ... (Set $php_IMAGE_URL, $nginx_IMAGE_URL, $shell_IMAGE_URL if needed) ...
37
-
38
17
39
18
.store-image-urls : &store-image-urls
40
19
script :
41
- - |
42
- echo "php_IMAGE_URL=${php_IMAGE_URL:-'default-php-image-url'}" >> tags # Use default if variable is not set
43
- echo "nginx_IMAGE_URL=${nginx_IMAGE_URL:-'default-nginx-image-url'}" >> tags
44
- echo "shell_IMAGE_URL=${shell_IMAGE_URL:-'default-shell-image-url'}" >> tags
45
- artifacts :
46
- paths :
47
- - tags
20
+ - echo "Storing image URLs..."
48
21
49
22
include :
50
23
- local : ' /.gitlab/templates/step-setup-silta-cli.yml'
@@ -64,11 +37,6 @@ include:
64
37
IMAGE_BUILD_BACKGROUND : " true"
65
38
IMAGE_BUILD_WAIT : " true"
66
39
CUSTOM_PROXY_COMMAND : " "
67
- before_script :
68
- - mkdir -p ~/project
69
- - cd ~/project/$DRUPAL_ROOT
70
- script :
71
- - echo "Codebase build steps here..." # Replace with your actual build commands
72
40
extends :
73
41
- .silta-cli-setup
74
42
- .decrypt-files
0 commit comments