diff --git a/Dockerfile b/Dockerfile index 0a2392a..7de0ca6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,12 @@ FROM golang:1.20 WORKDIR /go/src/app -COPY . /go/src/app +COPY src /go/src/app/src +COPY templates /go/src/app/templates +COPY go.mod /go/src/app/go.mod +COPY go.sum /go/src/app/go.sum +COPY serra.go /go/src/app/serra.go + RUN go get -v ./... RUN go build -ldflags "-X github.com/noqqe/serra/src/serra.Version=`git describe --tags`" -v serra.go diff --git a/Taskfile.yaml b/Taskfile.yaml index 56f0c27..9f4571f 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -19,8 +19,8 @@ tasks: - read -p "Version v1.1.1 " version ; git tag $version - git push --tags - goreleaser release --clean - - docker build . -t docker.io/noqqe/serra:`git describe --tags` - - docker push docker.io/noqqe/serra:`git describe --tags` + - docker build . -t ghcr.io/noqqe/serra:`git describe --tags` + - docker push ghcr.io/noqqe/serra:`git describe --tags` default: cmds: diff --git a/templates/index.tmpl b/templates/index.tmpl index 38eec62..3c3278f 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -43,7 +43,7 @@ @@ -59,7 +59,6 @@ -
@@ -76,6 +75,8 @@
+ +