Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scripts: install buildx in the release image #6330

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ jobs:
resource_class: medium+
docker:
# keep image in sync with build.toast.yml
- image: docker/tilt-releaser@sha256:0b7a34a6942b08975b68c61f932ea24edf9d2f14281e667b553edab93893bd4e
- image: docker/tilt-releaser@sha256:5d77cc33c108c5767ad1aa0e08f9d69f2cf73005bea5c5d05ee6c7898e788af1
environment:
DOCKER_CLI_EXPERIMENTAL: enabled
steps:
Expand All @@ -167,7 +167,7 @@ jobs:
resource_class: medium+
docker:
# keep image in sync with build.toast.yml
- image: docker/tilt-releaser@sha256:0b7a34a6942b08975b68c61f932ea24edf9d2f14281e667b553edab93893bd4e
- image: docker/tilt-releaser@sha256:5d77cc33c108c5767ad1aa0e08f9d69f2cf73005bea5c5d05ee6c7898e788af1
environment:
DOCKER_CLI_EXPERIMENTAL: enabled
steps:
Expand Down
23 changes: 11 additions & 12 deletions scripts/release.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,18 @@ RUN apt-get update && \
&& rm -rf /var/lib/apt/lists/*

# Install docker
# Adapted from https://github.com/circleci/circleci-images/blob/staging/shared/images/Dockerfile-basic.template
# Check https://download.docker.com/linux/static/stable/x86_64/ for latest versions
ENV DOCKER_VERSION=25.0.3
RUN set -exu \
&& DOCKER_URL="https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz" \
&& echo Docker URL: $DOCKER_URL \
&& curl --silent --show-error --location --fail --retry 3 --output /tmp/docker.tgz "${DOCKER_URL}" \
&& ls -lha /tmp/docker.tgz \
&& tar -xz -C /tmp -f /tmp/docker.tgz \
&& mv /tmp/docker/* /usr/bin \
&& rm -rf /tmp/docker /tmp/docker.tgz \
&& which docker \
&& (docker version || true)
# Add Docker's official GPG key:
&& install -m 0755 -d /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc \
&& chmod a+r /etc/apt/keyrings/docker.asc \
# Add the repository to Apt sources:
&& echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& apt update \
&& apt install -y docker-ce-cli=5:25.0.3-1~debian.11~bullseye docker-buildx-plugin

ENV GORELEASER_VERSION=v1.24.0
RUN set -exu \
Expand Down