-
Notifications
You must be signed in to change notification settings - Fork 113
48 lines (47 loc) · 1.42 KB
/
release.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
name: Release
on:
push:
tags:
- "*"
jobs:
release:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go environment
id: go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: false
- name: Make distribution
run: make dist
env:
VERSION: ${{ github.ref_name }}
GIT_COMMIT: ${{ github.sha }}
GO_VERSION: ${{ steps.go.outputs.go-version }}
- name: Release
uses: softprops/action-gh-release@v1
with:
files: "dist/*"
body_path: "changelog/NOTE.md"
docker:
strategy:
fail-fast: false
matrix:
include:
- file: docker/Dockerfile.reva
tags: ${{ vars.DOCKERHUB_ORGANIZATION }}/reva:${{ github.ref_name }}
- file: docker/Dockerfile.revad
tags: ${{ vars.DOCKERHUB_ORGANIZATION }}/revad:${{ github.ref_name }},${{ vars.DOCKERHUB_ORGANIZATION }}/revad:latest
- file: docker/Dockerfile.revad-eos
tags: ${{ vars.DOCKERHUB_ORGANIZATION }}/revad:${{ github.ref_name }}-eos
- file: docker/Dockerfile.revad-ceph
tags: ${{ vars.DOCKERHUB_ORGANIZATION }}/revad:${{ github.ref_name }}-ceph
uses: ./.github/workflows/docker.yml
secrets: inherit
with:
file: ${{ matrix.file }}
tags: ${{ matrix.tags }}
push: true