This repository has been archived by the owner on Apr 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
78 lines (71 loc) · 2.29 KB
/
blockstack-explorer.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: blockstack-explorer
on:
push:
branches:
- '**'
tags-ignore:
- '**'
paths-ignore:
- '**/CHANGELOG.md'
pull_request:
jobs:
build-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_TOKEN }}
- name: Notify slack start
if: success()
id: slack
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
channel: devops-notify
status: STARTING
color: warning
- name: Semantic Release
uses: cycjimmy/[email protected]
id: semantic
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SEMANTIC_RELEASE_PACKAGE: ${{ github.workflow }}
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
semantic-release-slack-bot
- name: Build/Tag/Push Image
uses: docker/build-push-action@v1
with:
repository: blockstack/${{ github.workflow }}
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
registry: quay.io
tags: ${{ steps.semantic.outputs.new_release_version }}
tag_with_ref: true
add_git_labels: true
# Only push if there's a new release on main branch, or if building a non-main branch
push: ${{ github.ref != 'refs/heads/master' || steps.semantic.outputs.new_release_version != '' }}
- name: Notify slack success
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
message_id: ${{ steps.slack.outputs.message_id }}
channel: devops-notify
status: SUCCESS
color: good
- name: Notify slack fail
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: voxmedia/[email protected]
with:
message_id: ${{ steps.slack.outputs.message_id }}
channel: devops-notify
status: FAILED
color: danger