File tree Expand file tree Collapse file tree 2 files changed +58
-1
lines changed Expand file tree Collapse file tree 2 files changed +58
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ jobs :
10+ release :
11+ runs-on : ubuntu-20.04
12+ outputs :
13+ published : ${{ steps.semantic.outputs.new_release_published }}
14+ version : ${{ steps.semantic.outputs.new_release_version }}
15+ steps :
16+ - uses : actions/checkout@v3
17+
18+ - name : Semantic Release
19+ id : semantic
20+ 21+ with :
22+ semantic_version : 18
23+ extra_plugins : |
24+ @semantic-release/release-notes-generator@^10
25+ @semantic-release/github@^8
26+ env :
27+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+
29+ publish_image :
30+ needs :
31+ - release
32+ if : needs.release.outputs.published == 'true'
33+ runs-on : ubuntu-latest
34+ outputs :
35+ image_digest : ${{ steps.build.outputs.digest }}
36+ steps :
37+ - uses : actions/checkout@v3
38+ - id : meta
39+ uses : docker/metadata-action@v4
40+ with :
41+ images : |
42+ tensorfusion/tensor-fusion-operator
43+ tags : |
44+ type=semver,pattern={{needs.release.outputs.version}}
45+ - name : Login to DockerHub
46+ uses : docker/login-action@v2
47+ with :
48+ username : ${{ secrets.DOCKER_USERNAME }}
49+ password : ${{ secrets.DOCKER_PASSWORD }}
50+
51+ - name : Build and push
52+ uses : docker/build-push-action@v3
53+ with :
54+ context : .
55+ push : true
56+ tags : ${{ steps.meta.outputs.tags }}
57+ no-cache : true
Original file line number Diff line number Diff line change 11# Image URL to use all building/pushing image targets
2- IMG ?= controller :latest
2+ IMG ?= tensorfusion/tensor-fusion-operator :latest
33# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
44ENVTEST_K8S_VERSION = 1.31.0
55
You can’t perform that action at this time.
0 commit comments