dapr 0.2.8 → 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.release-please-manifest.json +1 -1
- data/.version.txt +1 -1
- data/CHANGELOG.md +24 -0
- data/Readme.adoc +6 -2
- data/ci/build_image.sh +20 -12
- data/lib/dapr/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: 8736bfb9267b05b1f5878d3d46cd65317c6194e25ba58abc110c32dbd319440d
|
4
|
+
data.tar.gz: 596d3a33a622be3a3de76ef63e4a183882e4387d661fc639b8230e43241e8bde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd74588e1956455f165fd23fd63d9fc7fc5d4f738fb66186f6bff8b8ccff17d67442443c341839631777425d37acbe3f000cb009b16a7c848e3b65392c69212e
|
7
|
+
data.tar.gz: e0929839908d088a9485c6b26cc06200414c1f1b4d690fa8040ed873092b97b195456546f9b5ffec745767799e606f1e496fff263e7e08a30ee88a800c1d3072
|
data/.version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.11
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,29 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.2.11](https://github.com/rubyists/dapr-ruby-client/compare/v0.2.10...v0.2.11) (2024-06-03)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* **build:** Lowers concurrency for container jobs to 1 ([#59](https://github.com/rubyists/dapr-ruby-client/issues/59)) ([70c1c56](https://github.com/rubyists/dapr-ruby-client/commit/70c1c56990dbf4a87f8088b40483a213a674f793))
|
9
|
+
* Use secret references in matrix values ([#61](https://github.com/rubyists/dapr-ruby-client/issues/61)) ([9f45785](https://github.com/rubyists/dapr-ruby-client/commit/9f4578546cc77da79c5548347bee1b2ed6e790ec))
|
10
|
+
* Uses correct rubygems secret ([#60](https://github.com/rubyists/dapr-ruby-client/issues/60)) ([5de5ff4](https://github.com/rubyists/dapr-ruby-client/commit/5de5ff44bf0b06ee1652616f58c29a411ecb4e18))
|
11
|
+
|
12
|
+
## [0.2.10](https://github.com/rubyists/dapr-ruby-client/compare/v0.2.9...v0.2.10) (2024-06-03)
|
13
|
+
|
14
|
+
|
15
|
+
### Bug Fixes
|
16
|
+
|
17
|
+
* Release testing PR ([#57](https://github.com/rubyists/dapr-ruby-client/issues/57)) ([1f56abf](https://github.com/rubyists/dapr-ruby-client/commit/1f56abfb350c8d4886fcc2a2fd7183b2f6456d35))
|
18
|
+
* **workflow:** Corrects workflow syntax ([#55](https://github.com/rubyists/dapr-ruby-client/issues/55)) ([dee10a4](https://github.com/rubyists/dapr-ruby-client/commit/dee10a4a9475f73b1b52bbc0408564c05bc83ab8))
|
19
|
+
|
20
|
+
## [0.2.9](https://github.com/rubyists/dapr-ruby-client/compare/v0.2.8...v0.2.9) (2024-06-03)
|
21
|
+
|
22
|
+
|
23
|
+
### Features
|
24
|
+
|
25
|
+
* **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))
|
26
|
+
|
3
27
|
## [0.2.8](https://github.com/rubyists/dapr-ruby-client/compare/v0.2.7...v0.2.8) (2024-06-03)
|
4
28
|
|
5
29
|
|
data/Readme.adoc
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
= Dapr Client for Ruby
|
2
|
-
:
|
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
|
|
@@ -157,7 +159,9 @@ Implementation of {cryptography-block}
|
|
157
159
|
|
158
160
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
159
161
|
|
160
|
-
To install this gem on your local machine, run `bundle exec rake install`.
|
162
|
+
To install this gem on your local machine, run `bundle exec rake install`.
|
163
|
+
|
164
|
+
Releases are handled by release-please in github actions.
|
161
165
|
|
162
166
|
== Contributing
|
163
167
|
|
data/ci/build_image.sh
CHANGED
@@ -25,10 +25,20 @@ cd "$repo_top" || {
|
|
25
25
|
}
|
26
26
|
|
27
27
|
base_dir=$(basename "$(pwd)")
|
28
|
-
: "${
|
28
|
+
: "${ALPINE_VERSION:=3.20}"
|
29
29
|
: "${BUILD_CONTEXT:=$(pwd)}"
|
30
|
+
: "${IMAGE_NAME:=$base_dir}"
|
30
31
|
: "${LICENSE:=MIT}"
|
31
32
|
: "${REGISTRY:=ghcr.io}"
|
33
|
+
: "${RUBY_VERSION:=3.3.2}"
|
34
|
+
|
35
|
+
base_image_tag="$RUBY_VERSION-alpine$ALPINE_VERSION"
|
36
|
+
base_exists=$(skopeo list-tags docker://docker.io/ruby |jq -r "any(.Tags[] == \"$base_image_tag\"; .)")
|
37
|
+
if [ "$base_exists" = "false" ]
|
38
|
+
then
|
39
|
+
printf "Base image %s does not exist at docker.io/ruby, cannot build.\n" "$base_image_tag" >&2
|
40
|
+
exit 99
|
41
|
+
fi
|
32
42
|
|
33
43
|
usage() { # {{{
|
34
44
|
cat <<-EOT
|
@@ -199,8 +209,9 @@ fi
|
|
199
209
|
service=$(basename "$owner_and_repo" .git)
|
200
210
|
owner=$(dirname "$owner_and_repo")
|
201
211
|
|
212
|
+
full_tag=$IMAGE_NAME:$tag-ruby$RUBY_VERSION-alpine$ALPINE_VERSION
|
202
213
|
# Pass any extra arguments to the build command ("$@" contains the rest of the arguments)
|
203
|
-
$runtime build --tag
|
214
|
+
$runtime build --tag "$full_tag" "$@" \
|
204
215
|
--label org.opencontainers.image.created="$(date --utc --iso-8601=seconds)" \
|
205
216
|
--label org.opencontainers.image.description="Image for $service" \
|
206
217
|
--label org.opencontainers.image.licenses="$LICENSE" \
|
@@ -210,6 +221,8 @@ $runtime build --tag "$IMAGE_NAME:$tag" "$@" \
|
|
210
221
|
--label org.opencontainers.image.source="Generated by gitops_tools/bin/build_image ($USER@$HOSTNAME)" \
|
211
222
|
--label org.opencontainers.image.version="$tag" \
|
212
223
|
--label shortref="$shortref" \
|
224
|
+
--build-arg ALPINE_VERSION="$ALPINE_VERSION" \
|
225
|
+
--build-arg RUBY_VERSION="$RUBY_VERSION" \
|
213
226
|
-f "$containerfile" "$BUILD_CONTEXT" || die 8 "Failed to build image"
|
214
227
|
|
215
228
|
[ $push -eq 1 ] || exit 0
|
@@ -223,24 +236,19 @@ fi
|
|
223
236
|
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
237
|
for t in "${tags[@]}"
|
225
238
|
do
|
226
|
-
|
227
|
-
new_tag
|
228
|
-
debug "Tagging %s as %s\n" "$proper_tag" "$new_tag"
|
239
|
+
new_tag=$IMAGE_NAME:$t-ruby$RUBY_VERSION-alpine$ALPINE_VERSION
|
240
|
+
debug "Tagging %s as %s\n" "$full_tag" "$new_tag"
|
229
241
|
if [ "$runtime" = "podman" ]
|
230
242
|
then
|
231
|
-
if [ "$
|
243
|
+
if [ "$full_tag" != "$new_tag" ]
|
232
244
|
then
|
233
|
-
podman tag "$
|
245
|
+
podman tag "$full_tag" "$new_tag" || die 11 "Failed to tag image $full_tag as $new_tag"
|
234
246
|
fi
|
235
247
|
registry_image_name="$REGISTRY/$owner/$new_tag"
|
236
248
|
podman push "$new_tag" "$registry_image_name" || die 12 "Failed to push image $new_tag to $registry_image_name"
|
237
249
|
else
|
238
250
|
registry_image_name="$REGISTRY/$owner/$new_tag"
|
239
|
-
|
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
|
251
|
+
docker tag "$full_tag" "$registry_image_name" || die 13 "Failed to tag image $full_tag as $registry_image_name"
|
244
252
|
docker push "$registry_image_name" || die 14 "Failed to push image $new_tag to $registry_image_name"
|
245
253
|
fi
|
246
254
|
done
|
data/lib/dapr/version.rb
CHANGED