Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
matrix-media-repo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
matrix-media-repo
Commits
9e814523
Commit
9e814523
authored
5 years ago
by
Travis Ralston
Browse files
Options
Downloads
Patches
Plain Diff
Populate version info through CI
parent
30f84201
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.circleci/config.yml
+1
-1
1 addition, 1 deletion
.circleci/config.yml
.dockerignore
+2
-0
2 additions, 0 deletions
.dockerignore
appveyor.yml
+1
-1
1 addition, 1 deletion
appveyor.yml
build.ps1
+5
-0
5 additions, 0 deletions
build.ps1
build.sh
+1
-1
1 addition, 1 deletion
build.sh
with
10 additions
and
3 deletions
.circleci/config.yml
+
1
−
1
View file @
9e814523
...
...
@@ -8,7 +8,7 @@ jobs:
-
checkout
-
run
:
name
:
build binaries
command
:
'
GOBIN=$PWD/`dirname
$0`/bin
GO111MODULE=on
go
install
-v
./cmd/...
'
command
:
'
./build.sh
'
-
store_artifacts
:
path
:
bin/media_repo
destination
:
media_repo
...
...
This diff is collapsed.
Click to expand it.
.dockerignore
+
2
−
0
View file @
9e814523
/webui
/.idea
/bin
/pkg
/logs
/vendor
/config
media-repo*.yaml
homeserver.yaml
...
...
This diff is collapsed.
Click to expand it.
appveyor.yml
+
1
−
1
View file @
9e814523
...
...
@@ -24,7 +24,7 @@ install:
build_script
:
-
set GOBIN=%CD%/bin
-
set GO111MODULE=on
-
go install -v ./cmd/...
-
./build.ps1
artifacts
:
-
path
:
bin/media_repo.exe
...
...
This diff is collapsed.
Click to expand it.
build.ps1
0 → 100644
+
5
−
0
View file @
9e814523
$bin
=
(
Join-Path
$PWD
bin
)
$
Env
:
GOBIN
=
$bin
$GitCommit
=
(
git
rev-list
-1
HEAD
)
$Version
=
(
git
describe
--tags
)
go
install
-ldflags
"-X github.com/turt2live/matrix-media-repo/common/version.GitCommit=
$GitCommit
-X github.com/turt2live/matrix-media-repo/common/version.Version=
$Version
"
-v
.
/cmd/...
This diff is collapsed.
Click to expand it.
build.sh
+
1
−
1
View file @
9e814523
#!/bin/sh
GOBIN
=
$PWD
/
`
dirname
$0
`
/
bin go
install
-v
./cmd/...
GOBIN
=
$PWD
/bin go
install
-ldflags
"-X github.com/turt2live/matrix-media-repo/common/version.GitCommit=
$(
git rev-list
-1
HEAD
)
-X github.com/turt2live/matrix-media-repo/common/version.Version=
$(
git describe
--tags
)
"
-v
./cmd/...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment