Skip to content

Commit

Permalink
Merge pull request #31 from harness/aman-harness-patch-1
Browse files Browse the repository at this point in the history
Update go version
  • Loading branch information
aman-harness authored May 19, 2023
2 parents 92e7323 + decfb25 commit 0a7911b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
18 changes: 9 additions & 9 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pool:

steps:
- name: build
image: golang:1.18
image: golang:1.19
commands:
- go test ./...
- sh scripts/build.sh
Expand All @@ -27,7 +27,7 @@ platform:

steps:
- name: build-push
image: golang:1.18
image: golang:1.19
commands:
- 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/amd64/plugin'
environment:
Expand All @@ -38,7 +38,7 @@ steps:
- tag

- name: build-tag
image: golang:1.18
image: golang:1.19
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/amd64/plugin'
environment:
Expand Down Expand Up @@ -85,7 +85,7 @@ platform:

steps:
- name: build-push
image: golang:1.18
image: golang:1.19
commands:
- 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm64/plugin'
environment:
Expand All @@ -96,7 +96,7 @@ steps:
- tag

- name: build-tag
image: golang:1.18
image: golang:1.19
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm64/plugin'
environment:
Expand Down Expand Up @@ -143,7 +143,7 @@ platform:

steps:
- name: build-push
image: golang:1.18
image: golang:1.19
commands:
- 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/windows/amd64/plugin'
environment:
Expand All @@ -153,7 +153,7 @@ steps:
exclude:
- tag
- name: build-tag
image: golang:1.18
image: golang:1.19
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -o release/windows/amd64/plugin'
environment:
Expand Down Expand Up @@ -199,7 +199,7 @@ platform:

steps:
- name: build-push
image: golang:1.18
image: golang:1.19
commands:
- 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/windows/amd64/plugin'
environment:
Expand All @@ -209,7 +209,7 @@ steps:
exclude:
- tag
- name: build-tag
image: golang:1.18
image: golang:1.19
commands:
- 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -o release/windows/amd64/plugin'
environment:
Expand Down
8 changes: 4 additions & 4 deletions docker/Dockerfile.linux.amd64
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM alpine:3.15 as alpine
FROM alpine:3.17 as alpine
RUN apk add -U --no-cache ca-certificates

FROM alpine:3.15
FROM alpine:3.17
ENV GODEBUG netdns=go
ENV CI=true
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

# Install jfrog cli with version 1.35.5
# Install jfrog cli with version 2.37.3
RUN apk add --update \
curl \
&& rm -rf /var/cache/apk/*
RUN curl -fL https://getcli.jfrog.io/v2-jf | sh /dev/stdin 2.36.1
RUN curl -fL https://getcli.jfrog.io/v2-jf | sh /dev/stdin 2.37.3
RUN mv ./jf /usr/local/bin/jfrog
RUN chmod +x /usr/local/bin/jfrog

Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.linux.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ FROM arm64v8/alpine:3.12
ENV GODEBUG netdns=go
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

# Install jfrog cli with version 1.35.5
# Install jfrog cli with version 2.37.3
RUN apk add --update \
curl \
&& rm -rf /var/cache/apk/*
RUN curl -fL https://getcli.jfrog.io | sh /dev/stdin 2.36.1
RUN curl -fL https://getcli.jfrog.io | sh /dev/stdin 2.37.3
RUN mv ./jfrog /usr/local/bin/
RUN chmod +x /usr/local/bin/jfrog

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/drone/drone-artifactory

go 1.18
go 1.19

require (
github.com/kelseyhightower/envconfig v1.4.0
Expand Down

0 comments on commit 0a7911b

Please sign in to comment.