-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
45 lines (36 loc) · 851 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: go
env:
- VERSION="0.$TRAVIS_BUILD_NUMBER"
go:
- 1.16.x
git:
depth: false
quiet: true
submodules: false
branches:
only:
- main
services:
- docker
script:
- "make test"
- "VERSION=$VERSION make image"
- "make release"
before_deploy:
- git config --local user.name "pete911"
- git config --local user.email "p.reisinger@gmail.com"
- git tag $VERSION
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file:
- "releases/ecr-image-sync_linux_amd64.tar.gz"
- "releases/ecr-image-sync_darwin_amd64.tar.gz"
- "releases/ecr-image-sync_windows_amd64.tar.gz"
- "releases/ecr-image-sync_darwin_arm64.tar.gz"
skip_cleanup: true
on:
branch: main
after_success:
- echo "$DOCKER_PASSWORD" | docker login --username $DOCKER_USERNAME --password-stdin
- VERSION=$VERSION make push-image