Upgrading Various versions:

ChangeLog:
  - hugo version to 0.91.0 as default.
  - go version as 1.17 as default.
This commit is contained in:
Samir Faci 2021-12-21 09:44:54 -06:00
commit 6e5809d529
6 changed files with 10 additions and 8 deletions

View file

@ -1,8 +1,8 @@
ARG GO_VERSION=1.16.7 ARG GO_VERSION=1.17
FROM amd64/golang:$GO_VERSION-alpine AS hugo_builder FROM amd64/golang:$GO_VERSION-alpine AS hugo_builder
ARG HUGO_VERSION=0.87.0 ARG HUGO_VERSION=0.91.0
ADD docker/scripts/build_hugo.sh . ADD docker/scripts/build_hugo.sh .

View file

@ -1,8 +1,8 @@
ARG GO_VERSION=1.16.7 ARG GO_VERSION=1.17
FROM arm32v6/golang:$GO_VERSION-alpine AS hugo_builder FROM arm32v6/golang:$GO_VERSION-alpine AS hugo_builder
ARG HUGO_VERSION=0.87.0 ARG HUGO_VERSION=0.91.0
ADD docker/scripts/build_hugo.sh . ADD docker/scripts/build_hugo.sh .

View file

@ -1,8 +1,8 @@
ARG GO_VERSION=1.16.7 ARG GO_VERSION=1.17
FROM arm32v6/golang:$GO_VERSION-alpine AS hugo_builder FROM arm32v6/golang:$GO_VERSION-alpine AS hugo_builder
ARG HUGO_VERSION=0.87.0 ARG HUGO_VERSION=0.91.0
ADD docker/scripts/build_hugo.sh . ADD docker/scripts/build_hugo.sh .

View file

@ -2,7 +2,7 @@
set -e set -e
hugo_version=${HUGO_VERSION:-0.87.0} hugo_version=${HUGO_VERSION:-0.91.0}
echo "downloading build dependencies..." echo "downloading build dependencies..."
apk add -U --no-cache git build-base apk add -U --no-cache git build-base

2
go.mod
View file

@ -1,5 +1,7 @@
module github.com/drone-plugins/drone-hugo module github.com/drone-plugins/drone-hugo
go 1.17
require ( require (
github.com/pkg/errors v0.8.1 github.com/pkg/errors v0.8.1
github.com/urfave/cli v1.20.0 github.com/urfave/cli v1.20.0

View file

@ -5,7 +5,7 @@ local test_pipeline_name = 'testing';
local windows(os) = os == 'windows'; local windows(os) = os == 'windows';
local golang_image(os, version) = local golang_image(os, version) =
'golang:' + '1.14' + if windows(os) then '-windowsservercore-' + version else ''; 'golang:' + '1.17' + if windows(os) then '-windowsservercore-' + version else '';
{ {
test(os='linux', arch='amd64', version=''):: test(os='linux', arch='amd64', version='')::