Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
Beeper
standupbot
Commits
8a8420fc
Verified
Commit
8a8420fc
authored
Nov 02, 2021
by
Sumner Evans
💬
Browse files
CI: convert to GitLab
parent
8a49a248
Pipeline
#400656210
passed with stage
in 1 minute and 39 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.build.yml
deleted
100644 → 0
View file @
8a49a248
image
:
nixos/unstable
environment
:
REPO_NAME
:
standupbot
triggers
:
-
action
:
email
condition
:
failure
to
:
alerts@sumnerevans.com
artifacts
:
-
standupbot/standupbot
tasks
:
-
setup
:
|
cd $REPO_NAME
echo "cd $REPO_NAME" >> ~/.buildenv
nix-shell \
--arg forCI true \
--run "echo SHELL BUILD COMPLETE"
-
build
:
|
nix-shell \
--arg forCI true \
--run "go build -v"
-
test
:
|
nix-shell \
--arg forCI true \
--run "go test -v"
.gitlab-ci.yml
0 → 100644
View file @
8a8420fc
stages
:
-
build
build
:
image
:
dock.mau.dev/tulir/gomuks-build-docker:linux-amd64
stage
:
build
cache
:
paths
:
-
.cache
before_script
:
-
apk add --no-cache git ca-certificates build-base su-exec olm-dev
-
mkdir -p .cache
-
export GOPATH="$CI_PROJECT_DIR/.cache"
-
export GOCACHE="$CI_PROJECT_DIR/.cache/build"
-
export GO_LDFLAGS="-s -w -linkmode external -extldflags -static -X main.Tag=$CI_COMMIT_TAG -X main.Commit=$CI_COMMIT_SHA -X 'main.BuildTime=`date '+%b %_d %Y, %H:%M:%S'`'"
script
:
-
go build -ldflags "$GO_LDFLAGS" -o standupbot
artifacts
:
paths
:
-
standupbot
-
config.sample.json
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment