Skip to content

update(bitsong): docker file #733

update(bitsong): docker file

update(bitsong): docker file #733

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ bitsong ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.20']
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_BITSONG }}
# 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