Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/workflows/relativity-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
keyvault: "ai-services-dev"
secrets: "acrUsername, acrPassword"
id: kv

# On tag, get tag version without v (e.g. v1.0.0 -> 1.0.0, v1.1.1-beta -> 1.1.1-beta)
- name: Get tag version
id: get_version
Expand All @@ -40,20 +41,14 @@ jobs:
fi
echo "Using version: $VERSION"
echo ::set-output name=VERSION::$VERSION
# Build and test binary
- name: Build and Test Binary
env:
CGO_ENABLED: 0
run: |
go mod download
go test -test.timeout 30s
GOOS=linux GOARCH=amd64 go build -o build/linux/amd64/scuttle -ldflags="-X 'main.Version=${{ steps.get_version.outputs.VERSION }}'"

- name: Login to Docker
uses: docker/login-action@v1
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ steps.kv.outputs.acrUsername }}
password: ${{ steps.kv.outputs.acrPassword }}

# Build Docker image
# On tag, push Docker image
- name: Build Docker Image
Expand All @@ -62,12 +57,14 @@ jobs:
tags: ${{ secrets.DOCKER_REPOSITORY }}:latest, ${{ secrets.DOCKER_REPOSITORY }}:${{ steps.get_version.outputs.VERSION }}
push: ${{ startsWith(github.ref, 'refs/tags/') }}
build_args: VERSION=${{ steps.get_version.outputs.VERSION }}

# On tag, Pack zip of scuttle for GitHub Release
- name: Pack
run: |
mkdir build/artifacts
zip -r -j build/artifacts/scuttle-linux-amd64.zip build/linux/amd64/
if: startsWith(github.ref, 'refs/tags/')

# On tag, Create GitHub Release
- name: Release
uses: softprops/action-gh-release@v1
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.17-buster AS build
FROM golang:1.17.9-buster AS build
ARG VERSION="local"
COPY . /app
WORKDIR /app
Expand Down
10 changes: 8 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
module github.com/redboxllc/scuttle

go 1.14
go 1.17

require (
github.com/cenk/backoff v2.1.1+incompatible
github.com/monzo/typhon v0.0.0-20190413083455-45c89a830a76
)

require (
github.com/deckarep/golang-set v1.7.1 // indirect
github.com/fortytw2/leaktest v1.3.0 // indirect
github.com/golang/protobuf v1.4.2 // indirect
github.com/monzo/slog v0.0.0-20200629180744-4e22e890d327 // indirect
github.com/monzo/terrors v0.0.0-20191030112059-325b9ec5dcdf // indirect
github.com/monzo/typhon v0.0.0-20190413083455-45c89a830a76
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect
github.com/stretchr/testify v1.6.1 // indirect
golang.org/x/net v0.0.0-20200707034311-ab3426394381 // indirect
golang.org/x/text v0.3.0 // indirect
google.golang.org/protobuf v1.23.0 // indirect
)
1 change: 0 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miE
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
google.golang.org/protobuf v1.23.0 h1:4MY060fB1DLGMB/7MBTLnwQUY6+F09GEiz6SsrNqyzM=
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
Expand Down
22 changes: 0 additions & 22 deletions vendor/github.com/cenk/backoff/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions vendor/github.com/cenk/backoff/.travis.yml

This file was deleted.

20 changes: 0 additions & 20 deletions vendor/github.com/cenk/backoff/LICENSE

This file was deleted.

30 changes: 0 additions & 30 deletions vendor/github.com/cenk/backoff/README.md

This file was deleted.

66 changes: 0 additions & 66 deletions vendor/github.com/cenk/backoff/backoff.go

This file was deleted.

63 changes: 0 additions & 63 deletions vendor/github.com/cenk/backoff/context.go

This file was deleted.

Loading