-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 783 Bytes
/
feature.yml
File metadata and controls
32 lines (26 loc) · 783 Bytes
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
name: Feature build and deploy
on:
push:
branches:
- 'feature/*'
- 'bugfix/*'
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Git vars
id: vars
shell: bash
run: |
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Login to Docker Hub
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build image
run: |
make CHAINNET=testnet IMAGE_TAG=${{ steps.vars.outputs.sha_short }} BINARY=sifnoded build-image
- name: Push image
run: |
docker push sifchain/sifnoded:${{ steps.vars.outputs.sha_short }}