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
55 lines (53 loc) · 1.75 KB
/
prerelease.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
52
53
54
55
# Force push to 'prerelease' to get a JS/docker build for testing etc
name: prerelease
on:
push:
branches:
- prerelease
tags-ignore:
- 'v*'
jobs:
js:
name: npm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git fetch --unshallow --prune
- uses: actions/setup-node@v1
with:
always-auth: true
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- name: publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git config --global user.email "${GITHUB_ACTOR}"
git config --global user.name "${GITHUB_ACTOR}"
make publish_js
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 push --all-tags ${DOCKER_REPO}