Compare commits
2 commits
96aadee437
...
c084f2c64f
Author | SHA1 | Date | |
---|---|---|---|
c084f2c64f | |||
8546c3b969 |
5 changed files with 16 additions and 27 deletions
|
@ -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]
|
||||
|
|
|
@ -34,6 +34,15 @@ steps:
|
|||
- 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
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue