-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (50 loc) · 1.79 KB
/
docker-image.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
name: Docker Image CI
on:
push:
branches: [ injective ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.19']
steps:
- uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: run tests
run: go test -json ./... > test.json
- name: Annotate tests
if: always()
uses: guyarb/[email protected]
with:
test-results: test.json
package-name: foobar # optional, if using custom package name, github.com/owner/repo stripped from the pathname by default
- 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 }}
# Build docker image and publish
- 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_INJECTIVE }}
# 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