Skip to content

Commit d4a2bf4

Browse files
committed
[APP] Add release reference in binary
1 parent b9a147a commit d4a2bf4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@ jobs:
99
- name: Check out the repo
1010
uses: actions/checkout@v2
1111

12+
- name: Prepare tag
13+
run: |
14+
TAG=$(echo $GITHUB_REF | grep -o "[0-9][\.].*")
15+
echo "TAG=$TAG" >> $GITHUB_ENV
16+
1217
- name: Build and push image
1318
uses: docker/build-push-action@v1
1419
with:
1520
username: ${{ github.actor }}
1621
password: ${{ secrets.GITHUB_TOKEN }}
1722
registry: docker.pkg.github.com
1823
repository: sytten/anveosms/anveosms
19-
tag_with_ref: true
24+
tags: $TAG
25+
build_args: BUILD_VERSION=$TAG

0 commit comments

Comments
 (0)