dapr 0.2.7 → 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: e9f4294d26869aed36aea295650b7f6ffcf15173812fbc76679dc361093a6a2d
4
- data.tar.gz: c068d94e60edbe17b2120d7393af514a497474dd980b587da784fdb467a33bfb
3
+ metadata.gz: 7557653e645b1b964f55e38ed16cc2b097e69de47cf9cbe8509cb35a043c6887
4
+ data.tar.gz: d235d474a3f637bc898ded94aaf1f7e823ebb6516241f7d2a8986cdd09d02d9f
5
5
  SHA512:
6
- metadata.gz: 8055172e840a45c368f1444a38df0f417c25ab2b3763b04718572a018cb78df8943fc8c9f08f3d7197abaa863000a33615ec1d496e03f23b8a1391d7d71c664e
7
- data.tar.gz: 8e4a426aa303f960c27903b42bf145b52e73398090de48736eb9503ced92f5dc08d9a980fad5fb021a323163feef46fedf360d7437f064956fd2c9d8c0eb6e3f
6
+ metadata.gz: 1f1f751d58551b253c2bc2d5ecaf80d54ec43a82a6c53d9dd197a18462211719c7cff25aa235c8e27ced921cf9ff4d90543c3eb136a039c84a2afb39efa498ce
7
+ data.tar.gz: e62bc7c55f7fc623632a79e916bd301563d0478996e1398f28e436eb7b839854b698f268df70bac9b9768ad22222476f32863e52b1edd24d0060d12e0930fcd5
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.2.7"
2
+ ".": "0.2.9"
3
3
  }
data/.version.txt CHANGED
@@ -1 +1 @@
1
- 0.2.7
1
+ 0.2.9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
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
+
10
+ ## [0.2.8](https://github.com/rubyists/dapr-ruby-client/compare/v0.2.7...v0.2.8) (2024-06-03)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * Adds type declaration to workflow inputs ([#50](https://github.com/rubyists/dapr-ruby-client/issues/50)) ([3203b1c](https://github.com/rubyists/dapr-ruby-client/commit/3203b1cfa383f58b61a7fc00f57bbd007c1ff494))
16
+ * **build:** Corrects name of image build script ([#49](https://github.com/rubyists/dapr-ruby-client/issues/49)) ([04ff29e](https://github.com/rubyists/dapr-ruby-client/commit/04ff29e5812ac5986f3ec01b10300c566d12979c))
17
+
3
18
  ## [0.2.7](https://github.com/rubyists/dapr-ruby-client/compare/v0.2.6...v0.2.7) (2024-06-03)
4
19
 
5
20
 
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
 
@@ -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
@@ -220,27 +225,22 @@ then
220
225
  printf "%s" "$GITHUB_TOKEN" | $runtime login -u "$GITHUB_TOKEN" --password-stdin "$REGISTRY" || die 10 "Failed to login to $REGISTRY"
221
226
  fi
222
227
 
223
- tags=($(echo "$tag" | awk -F'.' 'NF==3{print $1"."$2"."$3" "$1"."$2" "$1} NF==2{print $1"."$2" "$1} NF==1{print $1}'))
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.7'
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.7
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tj (bougyman) Vanderpoel
@@ -55,7 +55,7 @@ files:
55
55
  - CHANGELOG.md
56
56
  - Rakefile
57
57
  - Readme.adoc
58
- - ci/build_image
58
+ - ci/build_image.sh
59
59
  - ci/publish-gem.sh
60
60
  - coverage/coverage.json
61
61
  - lib/dapr.rb