dapr 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.release-please-manifest.json +1 -1
- data/.version.txt +1 -1
- data/CHANGELOG.md +7 -0
- data/Readme.adoc +3 -1
- data/ci/build_image.sh +12 -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: 7557653e645b1b964f55e38ed16cc2b097e69de47cf9cbe8509cb35a043c6887
|
4
|
+
data.tar.gz: d235d474a3f637bc898ded94aaf1f7e823ebb6516241f7d2a8986cdd09d02d9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f1f751d58551b253c2bc2d5ecaf80d54ec43a82a6c53d9dd197a18462211719c7cff25aa235c8e27ced921cf9ff4d90543c3eb136a039c84a2afb39efa498ce
|
7
|
+
data.tar.gz: e62bc7c55f7fc623632a79e916bd301563d0478996e1398f28e436eb7b839854b698f268df70bac9b9768ad22222476f32863e52b1edd24d0060d12e0930fcd5
|
data/.version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
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
|
-
:
|
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
|
-
: "${
|
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
|
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
|
-
|
227
|
-
new_tag
|
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 [ "$
|
235
|
+
if [ "$full_tag" != "$new_tag" ]
|
232
236
|
then
|
233
|
-
podman 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
|
-
|
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