build-labels 0.0.6 → 0.0.8

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: 868072c73d56ec1efe249068e9bbd75b8b61118f5c28841e7ee86beed075bf63
4
+ data.tar.gz: f7bf2b09edeafa2df384236b658ff5a35e1d77ee1c7b02f98e1e3f8640a94640
5
5
  SHA512:
6
- metadata.gz: 7faa19f70fd4bd93dca085100b0eb26ce8d77c8ff1f12653d9bb8ef185767ebba4fa9f0347fe0c9ab4be3d8eaf21f07400ce380e54010b4c0be9417592af29d9
7
- data.tar.gz: 7b7e772113a9e9c48cc467d9aa0538fd566f98083661247585d96be6beff03f65b7d834e1b82599d79e2638fb02bde448b4fd497d19112f36338831a21e0bfb7
6
+ metadata.gz: d7b60030369a3d001346377f3a2d8324637630c9ba88abe65e9830091f566f57455d1e419a6e5ab81ce0ccfc5b14afde4dc67d761feb8f5b5caec86d7a885518
7
+ data.tar.gz: 584f0c56cd4c2b3f981ab7cec3896916c0b5e5be8625287cf8ab53e9e331a812344648d2e1bd98e5702d882a5e842fd0c840b6be1ff325fb2e61bba5e0954beb
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,9 @@ 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')
14
+ dockerfile = svc['build']['dockerfile'] || 'Dockerfile'
13
15
  dockerfile = File.expand_path dockerfile, compose_dir
14
16
  raise "file ot found: #{dockerfile}" unless File.exist? dockerfile
15
17
 
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.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artyom B
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-06 00:00:00.000000000 Z
11
+ date: 2023-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake