dapr 0.2.8 → 0.2.9

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: d001bf2fd07204b306fd2a246c0c4af09286c8f552191db799ee207d4daa272f
4
- data.tar.gz: 63805e4f48f6557d8921d11d45cd1d5da08c42a6ce7feef63c3c3277cc175e62
3
+ metadata.gz: 7557653e645b1b964f55e38ed16cc2b097e69de47cf9cbe8509cb35a043c6887
4
+ data.tar.gz: d235d474a3f637bc898ded94aaf1f7e823ebb6516241f7d2a8986cdd09d02d9f
5
5
  SHA512:
6
- metadata.gz: 57727a5210314aa669ce8528007d25924424c2e6548209d83603262e364f8d73605c79d39cddc6c8ceb34ee3f1fca17e6666bef0035e7e89ebfab4c0b1901d30
7
- data.tar.gz: a22ea07ef846e43d3ca53ed032579fdb8067809e8e451bea3fdefa709d0ed88d0d8820cf25db5cebaef6a8c9e324611f1e09cdead35c0ceb24a289b9b0458ccf
6
+ metadata.gz: 1f1f751d58551b253c2bc2d5ecaf80d54ec43a82a6c53d9dd197a18462211719c7cff25aa235c8e27ced921cf9ff4d90543c3eb136a039c84a2afb39efa498ce
7
+ data.tar.gz: e62bc7c55f7fc623632a79e916bd301563d0478996e1398f28e436eb7b839854b698f268df70bac9b9768ad22222476f32863e52b1edd24d0060d12e0930fcd5
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.2.8"
2
+ ".": "0.2.9"
3
3
  }
data/.version.txt CHANGED
@@ -1 +1 @@
1
- 0.2.8
1
+ 0.2.9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.9](https://github.com/rubyists/dapr-ruby-client/compare/v0.2.8...v0.2.9) (2024-06-03)
4
+
5
+
6
+ ### Features
7
+
8
+ * **builds:** Use matrix to build containers ([#52](https://github.com/rubyists/dapr-ruby-client/issues/52)) ([0f1ed51](https://github.com/rubyists/dapr-ruby-client/commit/0f1ed510984806b08a6c267ad36c4f8fca6478f8))
9
+
3
10
  ## [0.2.8](https://github.com/rubyists/dapr-ruby-client/compare/v0.2.7...v0.2.8) (2024-06-03)
4
11
 
5
12
 
data/Readme.adoc CHANGED
@@ -1,5 +1,6 @@
1
1
  = Dapr Client for Ruby
2
- :ifdef::env-github[]
2
+ :icons: font
3
+ ifdef::env-github[]
3
4
  :tip-caption: :bulb:
4
5
  :note-caption: :information_source:
5
6
  :important-caption: :heavy_exclamation_mark:
@@ -17,6 +18,7 @@ endif::[]
17
18
  :workflow-block: https://docs.dapr.io/developing-applications/building-blocks/workflow/workflow-overview/[Dapr Workflow Building Block]
18
19
  :cryptography-block: https://docs.dapr.io/developing-applications/building-blocks/cryptography/cryptography-overview/[Dapr Cryptography Building Block]
19
20
 
21
+ image::https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg[Conventional Commits,link=https://www.conventionalcommits.org/en/v1.0.0/]
20
22
 
21
23
  == Overview
22
24
 
data/ci/build_image.sh CHANGED
@@ -25,10 +25,12 @@ cd "$repo_top" || {
25
25
  }
26
26
 
27
27
  base_dir=$(basename "$(pwd)")
28
- : "${IMAGE_NAME:=$base_dir}"
28
+ : "${ALPINE_VERSION:=3.19}"
29
29
  : "${BUILD_CONTEXT:=$(pwd)}"
30
+ : "${IMAGE_NAME:=$base_dir}"
30
31
  : "${LICENSE:=MIT}"
31
32
  : "${REGISTRY:=ghcr.io}"
33
+ : "${RUBY_VERSION:=3.3.1}"
32
34
 
33
35
  usage() { # {{{
34
36
  cat <<-EOT
@@ -199,8 +201,9 @@ fi
199
201
  service=$(basename "$owner_and_repo" .git)
200
202
  owner=$(dirname "$owner_and_repo")
201
203
 
204
+ full_tag=$IMAGE_NAME:$tag-ruby$RUBY_VERSION-alpine$ALPINE_VERSION
202
205
  # Pass any extra arguments to the build command ("$@" contains the rest of the arguments)
203
- $runtime build --tag "$IMAGE_NAME:$tag" "$@" \
206
+ $runtime build --tag "$full_tag" "$@" \
204
207
  --label org.opencontainers.image.created="$(date --utc --iso-8601=seconds)" \
205
208
  --label org.opencontainers.image.description="Image for $service" \
206
209
  --label org.opencontainers.image.licenses="$LICENSE" \
@@ -210,6 +213,8 @@ $runtime build --tag "$IMAGE_NAME:$tag" "$@" \
210
213
  --label org.opencontainers.image.source="Generated by gitops_tools/bin/build_image ($USER@$HOSTNAME)" \
211
214
  --label org.opencontainers.image.version="$tag" \
212
215
  --label shortref="$shortref" \
216
+ --build-arg ALPINE_VERSION="$ALPINE_VERSION" \
217
+ --build-arg RUBY_VERSION="$RUBY_VERSION" \
213
218
  -f "$containerfile" "$BUILD_CONTEXT" || die 8 "Failed to build image"
214
219
 
215
220
  [ $push -eq 1 ] || exit 0
@@ -223,24 +228,19 @@ fi
223
228
  mapfile -t tags < <(echo "$tag" | awk -F'.' 'NF==3{print $1"."$2"."$3; print $1"."$2; print $1; next} NF==2{print $1"."$2; print $1; next} {print}')
224
229
  for t in "${tags[@]}"
225
230
  do
226
- proper_tag=$IMAGE_NAME:$tag
227
- new_tag=$IMAGE_NAME:$t
228
- debug "Tagging %s as %s\n" "$proper_tag" "$new_tag"
231
+ new_tag=$IMAGE_NAME:$t-ruby$RUBY_VERSION-alpine$ALPINE_VERSION
232
+ debug "Tagging %s as %s\n" "$full_tag" "$new_tag"
229
233
  if [ "$runtime" = "podman" ]
230
234
  then
231
- if [ "$proper_tag" != "$new_tag" ]
235
+ if [ "$full_tag" != "$new_tag" ]
232
236
  then
233
- podman tag "$proper_tag" "$new_tag" || die 11 "Failed to tag image $proper_tag as $new_tag"
237
+ podman tag "$full_tag" "$new_tag" || die 11 "Failed to tag image $full_tag as $new_tag"
234
238
  fi
235
239
  registry_image_name="$REGISTRY/$owner/$new_tag"
236
240
  podman push "$new_tag" "$registry_image_name" || die 12 "Failed to push image $new_tag to $registry_image_name"
237
241
  else
238
242
  registry_image_name="$REGISTRY/$owner/$new_tag"
239
- proper_registry_name="$REGISTRY/$owner/$proper_tag"
240
- if [ "$proper_tag" != "$new_tag" ]
241
- then
242
- docker tag "$proper_registry_name" "$registry_image_name" || die 13 "Failed to tag image $proper_tag as $new_tag"
243
- fi
243
+ docker tag "$full_tag" "$registry_image_name" || die 13 "Failed to tag image $full_tag as $registry_image_name"
244
244
  docker push "$registry_image_name" || die 14 "Failed to push image $new_tag to $registry_image_name"
245
245
  fi
246
246
  done
data/lib/dapr/version.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  module Rubyists
4
4
  module Dapr
5
5
  # x-release-please-start-version
6
- VERSION = '0.2.8'
6
+ VERSION = '0.2.9'
7
7
  # x-release-please-end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dapr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tj (bougyman) Vanderpoel