Compare commits

...

2 commits

Author SHA1 Message Date
c084f2c64f [Docs] changed README for docker deployment
All checks were successful
ci/woodpecker/pr/0-pre Pipeline was successful
ci/woodpecker/pr/1-build-check Pipeline was successful
2025-04-07 19:05:28 +00:00
8546c3b969 [CI] Improvments build/checks
Some checks failed
ci/woodpecker/push/99-release-bot Pipeline was successful
ci/woodpecker/push/1-build-check unknown status
ci/woodpecker/push/10-build-dev unknown status
ci/woodpecker/push/0-pre Pipeline failed
- Updated workflow to release the binary builds for tags in forgejo.
- Removed Check for docker build -> to much cpu usage for building.

Reviewed-on: #13
2025-04-07 19:03:21 +00:00
5 changed files with 16 additions and 27 deletions

View file

@ -19,26 +19,6 @@ steps:
commands:
- go build -a -installsuffix cgo -ldflags=" -X $I_PACKAGE.CI_COMMIT_SHA=$CI_COMMIT_SHA -X $I_PACKAGE.CI_COMMIT_BRANCH=$CI_COMMIT_BRANCH -X $I_PACKAGE.CI_COMMIT_TAG=$CI_COMMIT_TAG" -o app-arm64 .
- name: test/build-docker/linux-amd64
image: woodpeckerci/plugin-docker-buildx:5.2.2
settings:
platforms: linux/amd64
dry-run: true
repo: git.hackmi.ch/phil/goshorly
registry: git.hackmi.ch
depends_on:
- test/build-binary/linux-amd64
- name: test/build-docker/linux-arm64
image: woodpeckerci/plugin-docker-buildx:5.2.2
settings:
platforms: linux/arm64
dry-run: true
repo: git.hackmi.ch/phil/goshorly
registry: git.hackmi.ch
depends_on:
- test/build-binary/linux-arm64
when:
- event: [push, cron]
branch: [main, develop]

View file

@ -33,7 +33,16 @@ steps:
depends_on:
- prod/build-binary/linux-amd64
- prod/build-binary/linux-arm64
- name: prod/release/binary
image: woodpeckerci/plugin-release:0.2
settings:
files:
- 'app-linux-amd64'
- 'app-linux-arm64'
api_key:
from_secret: release_token
when:
- event: tag

View file

@ -29,13 +29,13 @@ docker-compose up -d
To simplify your deployment, we offer the following Docker tags:
- dev: Latest code from the main branch (experimental).
- latest: Latest stable release (may include breaking changes).
- Versioned Tags (vX, vX.X, vX.X.X): Specific release versions.
- 🔥 [Versioned Tags (X, X.X, X.X.X): Specific release versions.](https://git.hackmi.ch/Phil/-/packages/container/goshorly/versions) (⚠️ Recommended ⚠️)
- 🔴 latest: Latest stable release (may include breaking changes).
- ⚠️ dev: Latest code from the main branch (experimental).
#### Using Binary
1. Download the latest binary from the releases.
2. Create an .env file (or use the .env.example)
2. Create an .env file.
and change the values for your environment.
3. Run the binary the terminal.

View file

@ -2,7 +2,7 @@ version: "3"
services:
web:
# build: . # Only if you want to Build the image on your own Server!
image: git.hackmi.ch/phil/goshorly:latest
image: git.hackmi.ch/phil/goshorly:1.0
environment:
- HOST=example.org # Domain or IP-Adress
- PORT=3000 # The Port you want to use

View file

@ -2,7 +2,7 @@ version: "3"
services:
web:
# build: . # Only if you want to Build the image on your own Server!
image: git.hackmi.ch/phil/goshorly:latest
image: git.hackmi.ch/phil/goshorly:1.0
environment:
- HOST=127.0.0.1 # Domain or IP-Adress
- PORT=3000 # The Port you want to use