Skip to content

Commit

Permalink
PMM-12626 Packages built using old go version
Browse files Browse the repository at this point in the history
  • Loading branch information
adivinho committed Oct 25, 2023
1 parent 5f92df7 commit 6215d1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/docker/rpmbuild/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ENV GO_RELEASER_VERSION 1.21.2

RUN if [ `uname -i` == "x86_64" ]; then ARCH=amd64; else ARCH=arm64; fi && \
wget --progress=dot:giga https://dl.google.com/go/go${GO_VERSION}.linux-${ARCH}.tar.gz -O /tmp/golang.tar.gz && \
wget --progress=dot:giga https://github.com/goreleaser/goreleaser/releases/download/v${GO_RELEASER_VERSION}/goreleaser-${GO_RELEASER_VERSION}.`uname -i`.rpm -O /tmp/goreleaser.rpm && \
wget --progress=dot:giga https://github.com/goreleaser/goreleaser/releases/download/v${GO_RELEASER_VERSION}/goreleaser-${GO_RELEASER_VERSION}-1.`uname -i`.rpm -O /tmp/goreleaser.rpm && \
tar -C /usr/local -xzf /tmp/golang.tar.gz && \
yum install -y /tmp/goreleaser.rpm && \
rm /tmp/golang.tar.gz /tmp/goreleaser.rpm
Expand Down
3 changes: 2 additions & 1 deletion build/docker/rpmbuild/Dockerfile.el9
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM oraclelinux:9-slim
# enable nodesource repo for nodejs
RUN curl -sL https://rpm.nodesource.com/setup_16.x | bash -
RUN curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo
RUN microdnf install -y yum

RUN yum update -y && \
yum install -y --setopt=skip_missing_names_on_install=False \
Expand All @@ -29,7 +30,7 @@ ENV GO_RELEASER_VERSION 1.21.2

RUN if [ `uname -i` == "x86_64" ]; then ARCH=amd64; else ARCH=arm64; fi && \
wget --progress=dot:giga https://dl.google.com/go/go${GO_VERSION}.linux-${ARCH}.tar.gz -O /tmp/golang.tar.gz && \
wget --progress=dot:giga https://github.com/goreleaser/goreleaser/releases/download/v${GO_RELEASER_VERSION}/goreleaser-${GO_RELEASER_VERSION}.`uname -i`.rpm -O /tmp/goreleaser.rpm && \
wget --progress=dot:giga https://github.com/goreleaser/goreleaser/releases/download/v${GO_RELEASER_VERSION}/goreleaser-${GO_RELEASER_VERSION}-1.`uname -i`.rpm -O /tmp/goreleaser.rpm && \
tar -C /usr/local -xzf /tmp/golang.tar.gz && \
yum install -y /tmp/goreleaser.rpm && \
rm /tmp/golang.tar.gz /tmp/goreleaser.rpm
Expand Down

0 comments on commit 6215d1f

Please sign in to comment.