Skip to content

Commit e3f2569

Browse files
committed
chore(pack-images): fix no cache
1 parent 0aff652 commit e3f2569

7 files changed

Lines changed: 15 additions & 0 deletions

File tree

.drone/drone.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ steps:
173173
commands:
174174
- echo $DOCKER_PASSWORD | docker login $DRYCC_REGISTRY --username $DOCKER_USERNAME --password-stdin
175175
- docker system service --time 0 unix:///var/run/docker.sock &
176+
- sleep 9
176177
- STACK=20 VERSION=20-linux-amd64 make publish-buildpack
177178
environment:
178179
DEV_REGISTRY:
@@ -212,6 +213,7 @@ steps:
212213
commands:
213214
- echo $DOCKER_PASSWORD | docker login $DRYCC_REGISTRY --username $DOCKER_USERNAME --password-stdin
214215
- docker system service --time 0 unix:///var/run/docker.sock &
216+
- sleep 9
215217
- STACK=20 VERSION=20-linux-arm64 make publish-buildpack
216218
environment:
217219
DEV_REGISTRY:

buildpacks/go/bin/build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ else
2525
wget -q -O - "${go_url}" | tar -xzf - -C "${go_layer_dir}"
2626
cat > "${go_layer_dir}.toml" <<EOL
2727
cache = true
28+
build = true
2829
launch = true
2930
metadata = "${go_version}"
3031
EOL
@@ -51,6 +52,7 @@ else
5152
go mod download
5253
cat > "${go_cache_layer_dir}.toml" <<EOL
5354
cache = true
55+
build = true
5456
launch = true
5557
metadata = "${local_mod_checksum}"
5658
EOL

buildpacks/nodejs/bin/build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ else
2929
wget -q -O - "${node_url}" | tar -xJf - --strip-components=1 -C "${node_layer_dir}"
3030
cat > "${node_layer_dir}.toml" <<EOL
3131
cache = true
32+
build = true
3233
launch = true
3334
metadata = "${node_version}"
3435
EOL
@@ -60,6 +61,7 @@ else
6061
fi
6162
cat > "${node_modules_layer_dir}.toml" <<EOL
6263
cache = true
64+
build = true
6365
launch = true
6466
metadata = "${local_package_checksum}"
6567
EOL

buildpacks/php/bin/build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ else
3838
mv "${php_layer_dir}/bin/composer.phar" "${php_layer_dir}/bin/composer"
3939
cat > "${php_layer_dir}.toml" <<EOL
4040
cache = true
41+
build = true
4142
launch = true
4243
metadata = "${php_version}"
4344
EOL
@@ -90,6 +91,7 @@ else
9091
ext_install
9192
cat > "${extensions_layer_dir}.toml"<<EOL
9293
cache = true
94+
build = true
9395
launch = true
9496
metadata = "${local_extensions_checksum}"
9597
EOL
@@ -119,6 +121,7 @@ else
119121
fi
120122
cat > "${vendor_layer_dir}.toml"<<EOL
121123
cache = true
124+
build = true
122125
launch = true
123126
metadata = "${local_composer_checksum}"
124127
EOL
@@ -131,6 +134,7 @@ cp -r /etc/nginx/* "${nginx_layer_dir}"
131134
cp "${bp_dir}/config/nginx/base.conf" "${nginx_layer_dir}/nginx-php.conf"
132135
cat > "${nginx_layer_dir}.toml"<<EOL
133136
cache = true
137+
build = true
134138
launch = true
135139
EOL
136140

buildpacks/python/bin/build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ else
2626
wget -q -O - "${python_url}" | tar -xzf - -C "${python_layer_dir}"
2727
cat > "${python_layer_dir}.toml" <<EOL
2828
cache = true
29+
build = true
2930
launch = true
3031
metadata = "${python_version}"
3132
EOL
@@ -96,6 +97,7 @@ else
9697
--disable-pip-version-check --no-cache-dir
9798
cat > "${requirements_layer_dir}.toml" <<EOL
9899
cache = true
100+
build = true
99101
launch = true
100102
metadata = "${local_requirements_checksum}"
101103
EOL

buildpacks/ruby/bin/build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ else
2828
wget -q -O - "${ruby_url}" | tar -xzf - -C "${ruby_layer_dir}"
2929
cat > "${ruby_layer_dir}.toml" <<EOL
3030
cache = true
31+
build = true
3132
launch = true
3233
metadata = "${ruby_version}"
3334
EOL
@@ -83,6 +84,7 @@ else
8384
echo "---> Installing gems"
8485
cat > "${bundler_layer_dir}.toml" <<EOL
8586
cache = true
87+
build = true
8688
launch = true
8789
metadata = "${local_bundler_checksum}"
8890
EOL

buildpacks/rust/bin/build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ else
4747
fi
4848
cat > "${rust_layer_dir}.toml" <<EOL
4949
cache = true
50+
build = true
5051
launch = true
5152
metadata = "${rust_version}"
5253
EOL

0 commit comments

Comments
 (0)