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:
|
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 .
|
- 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:
|
when:
|
||||||
- event: [push, cron]
|
- event: [push, cron]
|
||||||
branch: [main, develop]
|
branch: [main, develop]
|
||||||
|
|
|
@ -33,7 +33,16 @@ steps:
|
||||||
depends_on:
|
depends_on:
|
||||||
- prod/build-binary/linux-amd64
|
- prod/build-binary/linux-amd64
|
||||||
- prod/build-binary/linux-arm64
|
- 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:
|
when:
|
||||||
- event: tag
|
- event: tag
|
||||||
|
|
||||||
|
|
|
@ -29,13 +29,13 @@ docker-compose up -d
|
||||||
|
|
||||||
To simplify your deployment, we offer the following Docker tags:
|
To simplify your deployment, we offer the following Docker tags:
|
||||||
|
|
||||||
- dev: Latest code from the main branch (experimental).
|
- 🔥 [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).
|
- 🔴 latest: Latest stable release (may include breaking changes).
|
||||||
- Versioned Tags (vX, vX.X, vX.X.X): Specific release versions.
|
- ⚠️ dev: Latest code from the main branch (experimental).
|
||||||
|
|
||||||
#### Using Binary
|
#### Using Binary
|
||||||
1. Download the latest binary from the releases.
|
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.
|
and change the values for your environment.
|
||||||
3. Run the binary the terminal.
|
3. Run the binary the terminal.
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ version: "3"
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
# build: . # Only if you want to Build the image on your own Server!
|
# 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:
|
environment:
|
||||||
- HOST=example.org # Domain or IP-Adress
|
- HOST=example.org # Domain or IP-Adress
|
||||||
- PORT=3000 # The Port you want to use
|
- PORT=3000 # The Port you want to use
|
||||||
|
|
|
@ -2,7 +2,7 @@ version: "3"
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
# build: . # Only if you want to Build the image on your own Server!
|
# 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:
|
environment:
|
||||||
- HOST=127.0.0.1 # Domain or IP-Adress
|
- HOST=127.0.0.1 # Domain or IP-Adress
|
||||||
- PORT=3000 # The Port you want to use
|
- PORT=3000 # The Port you want to use
|
||||||
|
|
Loading…
Add table
Reference in a new issue