generated from mchmarny/dapr-http-event-subscriber-template
-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (37 loc) · 954 Bytes
/
release-on-tag.yaml
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
name: Release
on:
push:
tags:
- 'v*' # v0.4.4
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Setup
id: go
uses: actions/setup-go@v2
with:
go-version: ^1.15
- name: Checkout
id: setup
uses: actions/checkout@v2
- name: Tidy
run: |
go mod tidy
go mod vendor
- name: Test
run: go test -v -count=1 -race ./...
- name: Version
id: get_version
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
- name: Image
uses: elgohr/Publish-Docker-Github-Action@master
env:
VERSION: ${{ env.RELEASE_VERSION }}
with:
name: ${{ secrets.DOCKER_USERNAME }}/dapr-event-subscriber-template
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
buildargs: VERSION
tags: "latest,${{ env.RELEASE_VERSION }}"