File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Txn Processor Controller Build/Release Workflow
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " [0-9]+.[0-9]+.[0-9]+"
7
+ - " [0-9]+.[0-9]+.[0-9]-rc.[0-9]+"
8
+
9
+ permissions :
10
+ contents : write
11
+ packages : write
12
+
13
+ jobs :
14
+ build :
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - name : Checkout code
19
+ uses : actions/checkout@v2
20
+
21
+ - name : Set up Docker Buildx
22
+ uses : docker/setup-buildx-action@v1
23
+ - name : Set Latest Tag
24
+ run : echo "LATEST_RELEASE_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
25
+
26
+ - name : Log in to GitHub Container Registry
27
+ uses : docker/login-action@v1
28
+ with :
29
+ registry : ghcr.io
30
+ username : ${{ github.repository_owner }}
31
+ password : ${{ secrets.GITHUB_TOKEN }}
32
+ - name : Build and push Docker image
33
+ uses : docker/build-push-action@v2
34
+ with :
35
+ context : .
36
+ push : true
37
+ tags : ghcr.io/${{ github.repository_owner }}/your_image_name:${{ env.LATEST_RELEASE_TAG }}
You can’t perform that action at this time.
0 commit comments