build-labels 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/Dockerfile +8 -0
- data/lib/build-labels/command_to_dockerfiles.rb +2 -1
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 598310c75d2bded8e415fdaf0ddda62dcb21c449781a072e8fc50087ac1e0afc
|
4
|
+
data.tar.gz: bb0a28a19f091161d3d5e9fd8d2537c8cd749abe5a3a14421ebb26572a8db537
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05f602bb1884a76bbab5de538103eecda267c7d369a39cfe297ef72437555b38cc3a10a375d9d3af55aea95b9c5d320eafb3dbf0d8a7b48322e6d6691b93411b
|
7
|
+
data.tar.gz: d73aa50550823aac30f3abf3d69721a1cec93516ed36891c27bb7143f8c1313edeaae2dcac89272cb910d793a9b7d1873e245f7e7942224401870a8c9bdfba4e
|
data/examples/Dockerfile
CHANGED
@@ -1,2 +1,10 @@
|
|
1
1
|
FROM ruby:3.1.2-alpine AS deploy
|
2
2
|
CMD sh -c ' echo Build $CI_COMMIT_BRANCH @ $CI_COMMIT_SHORT_SHA $CI_COMMIT_TIMESTAMP '
|
3
|
+
ENV ORG_OPENCONTAINERS_IMAGE_VENDOR="/"
|
4
|
+
ENV ORG_OPENCONTAINERS_IMAGE_AUTHORS="/"
|
5
|
+
ENV COM_GITLAB_CI_USER="/"
|
6
|
+
ENV COM_GITLAB_CI_COMMITURL="/commit/"
|
7
|
+
ENV COM_GITLAB_CI_MRURL="/-/merge_requests/"
|
8
|
+
ENV COM_GITLAB_CI_TAG=":"
|
9
|
+
ENV ORG_LABEL-SCHEMA_VENDOR="/"
|
10
|
+
ENV ORG_LABEL-SCHEMA_SCHEMA-VERSION="1.0"
|
@@ -9,7 +9,8 @@ BuildLabels::CommandLine::COMMANDS[:to_dockerfiles] = Class.new do
|
|
9
9
|
compose['services'].each do |name, svc|
|
10
10
|
next unless svc['build']
|
11
11
|
|
12
|
-
dockerfile = svc['build'].is_a?(String) ? svc['build'] :
|
12
|
+
dockerfile = svc['build'].is_a?(String) ? svc['build'] : svc['build']['context']
|
13
|
+
dockerfile = File.join dockerfile, (svc['build']['dockerfile'] || 'Dockerfile')
|
13
14
|
dockerfile = File.expand_path dockerfile, compose_dir
|
14
15
|
raise "file ot found: #{dockerfile}" unless File.exist? dockerfile
|
15
16
|
|
data/lib/version.rb
CHANGED