mirror of
https://github.com/wahyd4/golink.git
synced 2026-08-09 05:05:56 +10:00
Add flags to specify sqlite database and migration from files to sqlite. Migration is only supported in one direction (and flag name makes that clear). If both sqlite and linkdir flags are provided, sqlite is preferred. This has no change in behavior if neither of the new flags are provided. Change-Id: Ie13116ec3b80835b4389d228583e7a1476c00bfb
16 lines
303 B
Bash
Executable File
16 lines
303 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
set -x
|
|
|
|
export PATH="$PWD/../../tool":$PATH
|
|
|
|
go run github.com/tailscale/mkctr \
|
|
--target="flyio" \
|
|
--base="alpine:3.15" \
|
|
--gopaths="tailscale.io/cmd/golink:/tsgo" \
|
|
--tags="latest" \
|
|
--repos="registry.fly.io/tsgo" \
|
|
--push \
|
|
/tsgo -verbose -sqlitedb /root/golinks.db
|