The attached script provides a function for comparing semantic versions in a POSIX shell script.
| Result | Description |
|---|---|
-1 |
A<B |
0 |
A=B |
1 |
A>B |
| INFLUXDB_VERSION=1.7.10 | |
| GRAFANA_VERSION=7.3.7 | |
| SPEEDTEST_VERSION=1.1.0 | |
| INFLUXDB_ADMIN_USER= | |
| INFLUXDB_ADMIN_PASSWORD= | |
| INFLUXDB_DB=speedtest | |
| GF_SECURITY_ADMIN_PASSWORD= | |
| INTERVAL=3600 |
| //go:build windows | |
| // +build windows | |
| package term | |
| import ( | |
| "fmt" | |
| "unsafe" | |
| "golang.org/x/sys/windows" |
| # /etc/traefik/conf.d/00-dashboard.yml | |
| http: | |
| routers: | |
| dashboard: | |
| rule: "PathPrefix(`/api`) || PathPrefix(`/dashboard`)" | |
| service: "api@internal" |
In case you want to trigger an event on GitHub, you can create an empty commit:
$ git commit --allow-empty -m "Trigger event"If you have a small drive on C and would like to move your WSL distro you can do it using the LxRunOffline tool.
LxRunOffline list command:PS C:\> LxRunOffline list
docker-desktop-data
Ubuntu
docker-desktop
| name: lint | |
| on: | |
| pull_request: | |
| paths: | |
| - '.github/workflows/lint.yml' | |
| - 'src/*' | |
| jobs: | |
| lint: |
| name: issues | |
| on: | |
| push: | |
| jobs: | |
| generate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - |
| name: build | |
| on: push | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - | |
| name: Check GitHub Status |