From a4f6f1474e41db700f092c36db5408a0096127b5 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sat, 12 Oct 2024 10:41:55 +0200 Subject: [PATCH] revert unrelated changes --- .drone.yml | 12 ++++++------ .goreleaser.yml | 5 ++--- Dockerfile | 4 ++-- go.mod | 2 +- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index a4bb57332..5ae306b69 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,7 @@ steps: # We use golangci-lint for linting. # See: https://golangci-lint.run/ - name: lint - image: golangci/golangci-lint:v1.60.3 + image: golangci/golangci-lint:v1.57.2 volumes: - name: go-build-cache path: /root/.cache/go-build @@ -28,7 +28,7 @@ steps: - pull_request - name: test - image: golang:1.23.0-alpine + image: golang:1.22-alpine volumes: - name: go-build-cache path: /root/.cache/go-build @@ -94,7 +94,7 @@ steps: - pull_request - name: snapshot - image: superseriousbusiness/gotosocial-drone-build:0.7.0 # https://github.com/superseriousbusiness/gotosocial-drone-build + image: superseriousbusiness/gotosocial-drone-build:0.6.1 # https://github.com/superseriousbusiness/gotosocial-drone-build volumes: - name: go-build-cache path: /root/.cache/go-build @@ -141,7 +141,7 @@ steps: - main - name: release - image: superseriousbusiness/gotosocial-drone-build:0.7.0 # https://github.com/superseriousbusiness/gotosocial-drone-build + image: superseriousbusiness/gotosocial-drone-build:0.6.1 # https://github.com/superseriousbusiness/gotosocial-drone-build volumes: - name: go-build-cache path: /root/.cache/go-build @@ -200,7 +200,7 @@ clone: steps: - name: mirror - image: superseriousbusiness/gotosocial-drone-build:0.7.0 + image: superseriousbusiness/gotosocial-drone-build:0.6.1 environment: ORIGIN_REPO: https://github.com/superseriousbusiness/gotosocial TARGET_REPO: https://codeberg.org/superseriousbusiness/gotosocial @@ -213,6 +213,6 @@ steps: --- kind: signature -hmac: 9810bf692fb1029c13b0a1e2f556e2306d16f7d3eec9ca6163a0499c147280c1 +hmac: 475acfffed0cc2d45304f253cc8e57c6c19b8437571ec7e343a2ef85a7a270b8 ... diff --git a/.goreleaser.yml b/.goreleaser.yml index bfa700cc5..c43e8e085 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,4 @@ -# Version 2 of GoReleaser: https://goreleaser.com/errors/version/ -version: 2 +# https://goreleaser.com project_name: gotosocial before: # https://goreleaser.com/customization/hooks/ @@ -391,7 +390,7 @@ checksum: name_template: 'checksums.txt' snapshot: # https://goreleaser.com/customization/snapshots/ - version_template: "{{ incpatch .Version }}-SNAPSHOT" + name_template: "{{ incpatch .Version }}-SNAPSHOT" source: # https://goreleaser.com/customization/source/ enabled: true diff --git a/Dockerfile b/Dockerfile index c59fc1662..9ca0b2a28 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # Dockerfile reference: https://docs.docker.com/engine/reference/builder/ # stage 1: generate up-to-date swagger.yaml to put in the final container -FROM --platform=${BUILDPLATFORM} golang:1.23.0-alpine AS swagger +FROM --platform=${BUILDPLATFORM} golang:1.22-alpine AS swagger RUN \ ### Installs goswagger for building swagger definitions inside this container @@ -28,7 +28,7 @@ RUN yarn --cwd ./web/source install && \ rm -rf ./web/source # stage 3: build the executor container -FROM --platform=${TARGETPLATFORM} alpine:3.20.2 as executor +FROM --platform=${TARGETPLATFORM} alpine:3.19.1 as executor # switch to non-root user:group for GtS USER 1000:1000 diff --git a/go.mod b/go.mod index b1311089d..10d7e4af6 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/superseriousbusiness/gotosocial -go 1.23 +go 1.22.2 replace modernc.org/sqlite => gitlab.com/NyaaaWhatsUpDoc/sqlite v1.33.1-concurrency-workaround