From df5671586e39125a745f718f57edbdabbd2a4fdc Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Sun, 14 Aug 2022 15:34:47 +0500 Subject: [PATCH] Update images used for building containers and code test/lint, fill CHANGELOG. --- .drone.yml | 4 +-- .markdownlint.json | 3 +- CHANGELOG.md | 69 ++++++++++++++++++++++++++++++++++++++++++---- Dockerfile | 4 +-- 4 files changed, 69 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index c13f8e9..567d38e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,7 +5,7 @@ name: lint and test steps: - name: lint - image: code.pztrn.name/containers/mirror/golangci/golangci-lint:v1.46.2 + image: code.pztrn.name/containers/mirror/golangci/golangci-lint:v1.48.0 pull: if-not-exists environment: CGO_ENABLED: 0 @@ -13,7 +13,7 @@ steps: - golangci-lint run - name: test - image: code.pztrn.name/containers/mirror/golang:1.18.3-alpine + image: code.pztrn.name/containers/mirror/golang:1.19.0-alpine pull: if-not-exists environment: CGO_ENABLED: 0 diff --git a/.markdownlint.json b/.markdownlint.json index 513ed53..ef111ce 100644 --- a/.markdownlint.json +++ b/.markdownlint.json @@ -1,4 +1,5 @@ { "line-length": false, - "first-line-h1": false + "first-line-h1": false, + "no-duplicate-header": false } diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c240e2..37651dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,69 @@ # Changelog -``[A]`` - added -``[F]`` - fixed -``[R]`` - removed +All notable changes to this project will be documented in this file. ---- +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## 0.1.0 +## [Unreleased] + +### Changed + +* Updated docker images - golang to 1.19 and golangci-lint to 1.48.0. +* Updated chroma to v2.2.0. + +## [0.4.0] - 2021-01-09 + +### Added + +* PostgreSQL support. +* Docker containerization for every commit and tag. +* Pastes cleanup procedure. + +### Changed + +* Updated bulma to v 0.7.5. + +### Fixed + +* Dirty hack to get database connection reestablish (for sure). + +## 0.3.0 + +Release changelogs lost :(. + +## [0.2.0] - 2018-05-27 + +### Added + +* Possibility to create different database backends. Currently `mysql` and `flatfiles` are available. + +### Changed + +* De-hardcoded pagination configuration, it is now configurable via configuration file. + +## [0.1.1] - 2018-05-26 + +### Added + +* Footer copyrights. + +### Changed + +* Refactored templates: now they're included in each other if neccessary. + +### Fixed + +* Fixed nasty bugs with private pastes that causing fastpastebin to crash. +* Logger level from configuration now properly set. + +## [0.1.0] - 2018-05-19 First normal release. Fast Paste Bin is able to handle public, private -and passworded pastes. \ No newline at end of file +and passworded pastes. + +[Unreleased]: https://code.pztrn.name/apps/fastpastebin/compare/0.4.0...HEAD +[0.4.0]: https://code.pztrn.name/apps/fastpastebin/compare/v0.2.0...0.4.0 +[0.2.0]: https://code.pztrn.name/apps/fastpastebin/compare/v0.1.1...v0.2.0 +[0.1.1]: https://code.pztrn.name/apps/fastpastebin/compare/v0.1.0...v0.1.1 +[0.1.0]: https://code.pztrn.name/apps/fastpastebin/src/tag/v0.1.0 diff --git a/Dockerfile b/Dockerfile index 67b2cfc..eaa3d11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM code.pztrn.name/containers/mirror/golang:1.18.3-alpine AS build +FROM code.pztrn.name/containers/mirror/golang:1.19.0-alpine AS build WORKDIR /fastpastebin COPY . . @@ -7,7 +7,7 @@ WORKDIR /fastpastebin/cmd/fastpastebin RUN CGO_ENABLED=0 go build -tags netgo -FROM code.pztrn.name/containers/mirror/alpine:3.16.0 +FROM code.pztrn.name/containers/mirror/alpine:3.16.1 LABEL maintainer "Stanislav N. " COPY --from=build /fastpastebin/cmd/fastpastebin/fastpastebin /app/fastpastebin