Skip to content

Commit

Permalink
chore: bump deps
Browse files Browse the repository at this point in the history
Drop Azure and Gcloud cli, CI doesn't use them anymore.

Migrate renovate config to new schema.

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed Nov 5, 2024
1 parent 74004a1 commit cd8e568
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 31 deletions.
20 changes: 11 additions & 9 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
"schedule:earlyMondays"
],
"prHeader": "Update Request | Renovate Bot",
"regexManagers": [
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"^Dockerfile$"
],
Expand All @@ -18,6 +19,7 @@
"versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}"
},
{
"customType": "regex",
"fileMatch": [
"^hack/scripts/setup-"
],
Expand All @@ -29,25 +31,25 @@
],
"packageRules": [
{
"matchPackagePatterns": [
"*"
],
"matchDatasources": [
"docker"
],
"groupName": "container images"
"groupName": "container images",
"matchPackageNames": [
"*"
]
},
{
"matchPackagePatterns": [
"*"
],
"matchDatasources": [
"git-refs",
"git-tags",
"github-tags",
"github-releases"
],
"groupName": "releases"
"groupName": "releases",
"matchPackageNames": [
"*"
]
}
]
}
25 changes: 4 additions & 21 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
ARG DOCKER=docker:27.2.1-dind
ARG DOCKER=docker:27.3.1-dind

FROM $DOCKER AS docker

FROM alpine:3.20.3 AS build-container-drone

# https://github.com/twistedpair/google-cloud-sdk/ is a mirror that replicates the gcloud sdk versions
# renovate: datasource=github-tags depName=twistedpair/google-cloud-sdk
ARG CLOUD_SDK_VERSION=492.0.0
# renovate: datasource=github-releases depName=docker/buildx
ARG BUILDX_VERSION=v0.17.1
ARG BUILDX_VERSION=v0.18.0
# renovate: datasource=github-releases extractVersion=^v(?<version>.*)$ depName=hashicorp/terraform
ARG TERRAFORM_VERSION=1.7.3

# janky janky janky
ENV PATH /google-cloud-sdk/bin:$PATH

RUN apk add --update --no-cache \
aws-cli \
bash \
Expand Down Expand Up @@ -58,17 +52,6 @@ RUN apk add --update --no-cache \
# workaround, install older OVMF version from Alpine 3.18
RUN apk add --no-cache ovmf=0.0.202302-r0 --repository=https://dl-cdn.alpinelinux.org/alpine/v3.18/community

# Install gcloud
RUN curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \
tar xzf google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \
rm google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \
gcloud config set core/disable_usage_reporting true && \
gcloud config set component_manager/disable_update_check true && \
gcloud config set metrics/environment github_docker_image

# Install azure
RUN pip3 install azure-cli --break-system-packages

# Required by docker-compose for zlib.
ENV LD_LIBRARY_PATH=/lib:/usr/lib

Expand Down Expand Up @@ -98,9 +81,9 @@ ARG CRANE_VERSION=v0.20.2
# renovate: datasource=github-releases depName=mikefarah/yq
ARG YQ_VERSION=v4.44.3
# renovate: datasource=github-releases depName=getsops/sops
ARG SOPS_VERSION=v3.9.0
ARG SOPS_VERSION=v3.9.1
# renovate: datasource=github-tags depName=aws/aws-cli
ARG AWSCLI_VERSION=2.17.51
ARG AWSCLI_VERSION=2.19.1
USER root
RUN apt update && \
apt upgrade -y && \
Expand Down
2 changes: 1 addition & 1 deletion hack/scripts/setup-ci
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -ex
export TAG=$(git log --oneline --format=%B -n 1 HEAD | head -n 1 | sed -r "/^release\(/ s/^release\((.*)\):.*$/\\1/; t; Q")

# renovate: datasource=github-releases depName=moby/buildkit
BUILDKIT_IMAGE="docker.io/moby/buildkit:v0.16.0"
BUILDKIT_IMAGE="docker.io/moby/buildkit:v0.17.0"

# setup buildkit across amd64/arm64 workers
function setup_buildkit() {
Expand Down

0 comments on commit cd8e568

Please sign in to comment.