This repository has been archived by the owner on May 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 346
51 lines (49 loc) · 1.59 KB
/
main.yaml
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
46
47
48
49
50
51
name: main
on:
push:
branches:
- main
jobs:
cover:
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v1
with:
go-version: 1.16
id: go
- uses: actions/checkout@v2
- run: make test
env:
GO_TEST_ARGS: "-coverprofile=coverage.txt -covermode=atomic"
- uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
docker:
name: docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: make docker_build
- name: publish monax
env:
DOCKER_REPO: "hyperledger/burrow"
DOCKER_REPO_DEV: "quay.io/monax/burrow"
DOCKER_PASS_DEV: ${{ secrets.DOCKER_PASS_DEV }}
DOCKER_USER_DEV: ${{ secrets.DOCKER_USER_DEV }}
run: |
version=$(./scripts/local_version.sh)
echo ${DOCKER_PASS_DEV} | docker login --username ${DOCKER_USER_DEV} ${DOCKER_REPO_DEV} --password-stdin
docker tag ${DOCKER_REPO}:${version} ${DOCKER_REPO_DEV}:${version}
docker push --all-tags ${DOCKER_REPO_DEV}
- name: publish hyperledger
env:
DOCKER_REPO: "hyperledger/burrow"
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
DOCKER_USER: ${{ secrets.DOCKER_USER }}
run: |
version=$(./scripts/local_version.sh)
echo ${DOCKER_PASS} | docker login --username ${DOCKER_USER} --password-stdin
docker tag ${DOCKER_REPO}:${version} ${DOCKER_REPO}:latest
docker push ${DOCKER_REPO}:latest