Skip to content

Commit e06c7f8

Browse files
committed
Test.
1 parent 98593ab commit e06c7f8

File tree

2 files changed

+3
-35
lines changed

2 files changed

+3
-35
lines changed

.gitlab-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ drupal-build:
159159
DRUPAL_ROOT: "." # Customize if needed
160160
# ... other project-specific variables ...
161161
script:
162-
- echo "Project-specific build steps here..." # Add your project's build commands
162+
- echo "Project-specific build steps here..."
163163

164164

165165
build-job0:

.gitlab/templates/drupal-build.yml

+2-34
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,23 @@
11

22
.decrypt-files: &decrypt-files
33
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..."
105

116
.docker-setup: &docker-setup
127
before_script:
138
- echo "Setting up Docker..."
14-
# ... (your Docker setup commands - e.g., docker login, etc.) ...
159

1610
.silta-setup: &silta-setup
1711
script:
1812
- 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
2813

2914
.drupal-docker-build: &drupal-docker-build
3015
script:
3116
- 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-
3817

3918
.store-image-urls: &store-image-urls
4019
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..."
4821

4922
include:
5023
- local: '/.gitlab/templates/step-setup-silta-cli.yml'
@@ -64,11 +37,6 @@ include:
6437
IMAGE_BUILD_BACKGROUND: "true"
6538
IMAGE_BUILD_WAIT: "true"
6639
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
7240
extends:
7341
- .silta-cli-setup
7442
- .decrypt-files

0 commit comments

Comments
 (0)