Skip to content

Commit 64dab69

Browse files
committed
feat(grpc): Update grpc to 1.65.1
1 parent a6b0f5f commit 64dab69

File tree

4 files changed

+23
-26
lines changed

4 files changed

+23
-26
lines changed

.github/workflows/container.yaml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,22 @@ jobs:
1818
name: Publish the container image to GitHub Container Registry
1919
runs-on: ubuntu-latest
2020
strategy:
21-
# Go easy on the builders
22-
max-parallel: 2
21+
# Go hard on the builders
22+
max-parallel: 5
2323
matrix:
2424
alpine-version: ['3.20', '3.19']
25-
ruby-version: ['3.3.2', '3.3.1']
25+
ruby-version: ['3.3.4', '3.3.3', '3.3.2']
2626
# 3.3.0 isn't published (to docker.io) for 3.20, so we only do 3.19, the
2727
# latest published version.
28-
include:
29-
- alpine-version: '3.19'
30-
ruby-version: '3.3.0'
28+
#include:
29+
#- alpine-version: '3.19'
30+
#ruby-version: '3.3.0'
3131
steps:
3232
-
3333
name: Checkout repository
3434
uses: actions/checkout@v4
3535
-
36-
# Ruby doesn't publish 3.3.0-alpine3.20 as of June 3, 2024,
37-
# so we skip this combination.
38-
if: >
39-
matrix.alpine_version != '3.20' || matrix.ruby_version != '3.3.0'
40-
name: Publish to github
36+
name: Publish to ghcr.io
4137
env:
4238
ALPINE_VERSION: ${{ matrix.alpine-version }}
4339
REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }}

ci/build_image.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ base_dir=$(basename "$(pwd)")
3030
: "${IMAGE_NAME:=$base_dir}"
3131
: "${LICENSE:=MIT}"
3232
: "${REGISTRY:=ghcr.io}"
33-
: "${RUBY_VERSION:=3.3.2}"
33+
: "${RUBY_VERSION:=3.3.4}"
34+
: "${REGISTRY_TOKEN:=$GITHUB_TOKEN}"
3435

3536
base_image_tag="$RUBY_VERSION-alpine$ALPINE_VERSION"
3637
base_exists=$(skopeo list-tags docker://docker.io/ruby |jq -r "any(.Tags[] == \"$base_image_tag\"; .)")
@@ -155,7 +156,6 @@ if [ $# -gt 0 ]; then
155156
shift
156157
fi
157158

158-
159159
if [ -z "$CONTAINERFILE" ]; then
160160
printf "No containerfile specified, looking for default locations\n"
161161
for containerfile in Containerfile Dockerfile
@@ -218,8 +218,8 @@ $runtime build --tag "$full_tag" "$@" \
218218
--label org.opencontainers.image.revision="$revision" \
219219
--label org.opencontainers.image.url="$repo_url" \
220220
--label org.opencontainers.image.title="$IMAGE_NAME" \
221-
--label org.opencontainers.image.source="Generated by gitops_tools/bin/build_image ($USER@$HOSTNAME)" \
222-
--label org.opencontainers.image.version="$tag" \
221+
--label org.opencontainers.image.source="Generated by ruby-automation's build_image.sh ($USER@$HOSTNAME)" \
222+
--label org.opencontainers.image.version="$full_tag" \
223223
--label shortref="$shortref" \
224224
--build-arg ALPINE_VERSION="$ALPINE_VERSION" \
225225
--build-arg RUBY_VERSION="$RUBY_VERSION" \
@@ -229,25 +229,26 @@ $runtime build --tag "$full_tag" "$@" \
229229
if ! $runtime login --get-login "$REGISTRY" >/dev/null 2>/dev/null
230230
then
231231
printf "Not logged in to '%s', trying to login\n" "$REGISTRY" >&2
232-
[ -z "$GITHUB_TOKEN" ] && die 9 "No GITHUB_TOKEN set, cannot login"
233-
printf "%s" "$GITHUB_TOKEN" | $runtime login -u "$GITHUB_TOKEN" --password-stdin "$REGISTRY" || die 10 "Failed to login to $REGISTRY"
232+
[ -z "$REGISTRY_TOKEN" ] && die 9 "No REGISTRY_TOKEN (nor GITHUB_TOKEN) set, cannot login"
233+
printf "%s" "$REGISTRY_TOKEN" | $runtime login -u "$REGISTRY_TOKEN" --password-stdin "$REGISTRY" || die 10 "Failed to login to $REGISTRY"
234234
fi
235235

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}')
236+
# Split 1.2.3 into 1.2.3, 1.2, 1. We want to tag our image with all 3 of these
237+
mapfile -t tags < <(echo "$tag" | awk -F'.' 'NF==3{print; print $1"."$2; print $1; next} NF==2{print; print $1; next} {print}')
237238
for t in "${tags[@]}"
238239
do
239240
new_tag=$IMAGE_NAME:$t-ruby$RUBY_VERSION-alpine$ALPINE_VERSION
240-
debug "Tagging %s as %s\n" "$full_tag" "$new_tag"
241+
registry_image_name="$REGISTRY/$owner/$new_tag"
241242
if [ "$runtime" = "podman" ]
242243
then
243244
if [ "$full_tag" != "$new_tag" ]
244245
then
246+
debug "Tagging %s as %s\n" "$full_tag" "$new_tag"
245247
podman tag "$full_tag" "$new_tag" || die 11 "Failed to tag image $full_tag as $new_tag"
246248
fi
247-
registry_image_name="$REGISTRY/$owner/$new_tag"
248249
podman push "$new_tag" "$registry_image_name" || die 12 "Failed to push image $new_tag to $registry_image_name"
249250
else
250-
registry_image_name="$REGISTRY/$owner/$new_tag"
251+
debug "Tagging %s as %s\n" "$full_tag" "$registry_image_name"
251252
docker tag "$full_tag" "$registry_image_name" || die 13 "Failed to tag image $full_tag as $registry_image_name"
252253
docker push "$registry_image_name" || die 14 "Failed to push image $new_tag to $registry_image_name"
253254
fi

dapr.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
1111
spec.summary = 'Library for interacting with dapr.'
1212
spec.description = 'Wrappers to the dapr protobuf spec.'
1313
spec.homepage = 'https://github.com/rubyists/dapr'
14-
spec.required_ruby_version = '>= 3.2.0'
14+
spec.required_ruby_version = '>= 3.3.0'
1515

1616
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
1717

oci/Containerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ARG ALPINE_VERSION=3.19
2-
ARG RUBY_VERSION=3.3.1
1+
ARG ALPINE_VERSION=3.20
2+
ARG RUBY_VERSION=3.3.4
33
FROM docker.io/ruby:$RUBY_VERSION-alpine$ALPINE_VERSION AS build-env
44

55
# Setting env up
@@ -33,8 +33,8 @@ RUN bundle config set build.nokogiri --use-system-libraries && \
3333
RUN rm -rf node_modules tmp/cache app/assets vendor/assets spec
3434

3535
############### Build step done ###############
36-
ARG ALPINE_VERSION=3.19
37-
ARG RUBY_VERSION=3.3.1
36+
ARG ALPINE_VERSION=3.20
37+
ARG RUBY_VERSION=3.3.4
3838
FROM docker.io/ruby:$RUBY_VERSION-alpine$ALPINE_VERSION
3939

4040
ARG APP_ROOT=/app

0 commit comments

Comments
 (0)