-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.47 KB
/
build-check.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
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: GitHub Action for DigitalOcean - doctl
# You may pin to the exact commit or the version.
# uses: digitalocean/action-doctl@7f3a9967e5f7b8f4581cf10e6891535614f36850
uses: digitalocean/[email protected]
with:
# Version of doctl to install
# version: # optional, default is latest
# DigitalOcean API Token
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
- name: DigitalOcean Docker Image Publish
# You may pin to the exact commit or the version.
# uses: ripplr-io/docr-docker-publish@4b4d57000d6e16fe589b3cea2d491830b9d7da87
uses: ripplr-io/docr-docker-publish@v1
with:
# Image path in the format registry-name/image-name
image_path: ${{ secrets.IMAGE_PATH }}
# Number of characters from the commit SHA
sha_size: 8 # optional, default is 8
- name: Notify Telegram
uses: yanzay/[email protected]
if: always()
with:
chat: ${{ secrets.chat }} # user id or channel name secret
token: ${{ secrets.token }} # token secret
status: ${{ job.status }} # do not modify this line