Compare commits
8 Commits
60746f8824
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 9c142cf6c2 | |||
| 0126d0272a | |||
| 9807b624ba | |||
| ec4e1e93cb | |||
| 9a12fd063e | |||
| 6774c2f631 | |||
| eccef756a0 | |||
| 00d33aa41d |
@@ -1,14 +0,0 @@
|
||||
FROM golang:1.24.2 AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN go mod download
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/bin/anon3anon ./cmd/anon3anon
|
||||
|
||||
FROM alpine:latest AS run
|
||||
|
||||
COPY --from=build /app/bin/anon3anon /app/bin/
|
||||
|
||||
CMD ["/app/bin/anon3anon"]
|
||||
@@ -9,8 +9,7 @@ permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
check:
|
||||
name: Build and test
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -19,30 +18,16 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.25.x'
|
||||
cache: false
|
||||
|
||||
- name: Download dependencies
|
||||
run: go mod download
|
||||
|
||||
- name: Run build
|
||||
run: go build ./cmd/anon3anon/
|
||||
|
||||
- name: Run tests
|
||||
run: go test ./...
|
||||
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.25.x'
|
||||
|
||||
- name: Run golangci-lint
|
||||
uses: golangci/golangci-lint-action@v8
|
||||
with:
|
||||
version: 'v2.4'
|
||||
@@ -1,24 +0,0 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
|
||||
release:
|
||||
name: Automatic release
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Create the release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
generate_release_notes: true
|
||||
@@ -1,9 +1,7 @@
|
||||
# :performing_arts: anon3anon [](https://github.com/nightnoryu/anon3anon/releases) [](https://github.com/nightnoryu/anon3anon/actions/workflows/check-go.yml) [](https://goreportcard.com/report/github.com/nightnoryu/anon3anon)
|
||||
# :performing_arts: anon3anon
|
||||
|
||||
Telegram bot for anonymous messages.
|
||||
|
||||
Currently running at https://t.me/meme_me_a_meme_bot for my channel.
|
||||
|
||||
## Local development
|
||||
|
||||
Prerequisites:
|
||||
@@ -15,7 +13,7 @@ Prerequisites:
|
||||
Clone the repository:
|
||||
|
||||
```shell
|
||||
git clone git@github.com:nightnoryu/anon3anon.git
|
||||
git clone ssh://git@gitea.nightnoryu.com:2222/nightnoryu/anon3anon.git
|
||||
cd anon3anon
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user