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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c019e99a75702daa4a23d0b2910cc831042d71b2994c9b647f165e1b9a83593
4
- data.tar.gz: d3ef13fbd884faa4ff971af506fe21e1dd9b68db7e4912c852f48747616efbe8
3
+ metadata.gz: 598310c75d2bded8e415fdaf0ddda62dcb21c449781a072e8fc50087ac1e0afc
4
+ data.tar.gz: bb0a28a19f091161d3d5e9fd8d2537c8cd749abe5a3a14421ebb26572a8db537
5
5
  SHA512:
6
- metadata.gz: 7faa19f70fd4bd93dca085100b0eb26ce8d77c8ff1f12653d9bb8ef185767ebba4fa9f0347fe0c9ab4be3d8eaf21f07400ce380e54010b4c0be9417592af29d9
7
- data.tar.gz: 7b7e772113a9e9c48cc467d9aa0538fd566f98083661247585d96be6beff03f65b7d834e1b82599d79e2638fb02bde448b4fd497d19112f36338831a21e0bfb7
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'] : [svc['build']['context'], svc['build']['dockerfile']].compact.join('/')
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
@@ -1,5 +1,5 @@
1
1
  module BuildLabels
2
2
  class Builder
3
- VERSION = '0.0.6'
3
+ VERSION = '0.0.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: build-labels
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artyom B