Skip to content

Commit

Permalink
upgrade go version for custom-script v2 (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
chengjoey authored Jul 8, 2024
1 parent 33240a5 commit 769a89a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions actions/custom-script/2.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ RUN chown -R dice:dice /home/dice/.m2 \
&& go install github.com/golangci/golangci-lint/cmd/[email protected] \
&& npm install -g yarn

RUN git clone https://github.com/udhos/update-golang && cd update-golang && RELEASE=1.22.5 ./update-golang.sh && source /etc/profile.d/golang_path.sh

ARG TARGETARCH
RUN yum erase -y git && cd /opt && curl -O -L https://erda-project.oss-cn-hangzhou.aliyuncs.com/erda-addons/git-$TARGETARCH.tgz && tar -xzvf git-$TARGETARCH.tgz && rm -fv git-$TARGETARCH.tgz
ENV PATH=/opt/git/bin:$PATH
Expand Down
2 changes: 1 addition & 1 deletion actions/custom-script/2.0/dice.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### job 配置项
jobs:
custom-script:
image: registry.erda.cloud/erda-actions/custom-script-action:2.0-20230608153022-685950d
image: registry.erda.cloud/erda-actions/custom-script-action:2.0-20240708110557-33240a5b
resources:
cpu: 0.1
mem: 1024
Expand Down

0 comments on commit 769a89a

Please sign in to comment.