This commit is contained in:
2023-03-12 22:36:27 +06:00
parent 7fb7f923f7
commit 345a156334
2 changed files with 9 additions and 5 deletions

View File

@@ -1,8 +1,7 @@
name: Docker
on:
push:
branches:
- master
on: [push]
jobs:
publishing:
runs-on: ubuntu-latest
@@ -12,6 +11,12 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Rewrite version
run: |
branch="`echo "${{ github.ref }}" | grep -o "[^/]*$"`"
cat gradle.properties | sed -e "s/^version=\([0-9\.]*\)/version=\1-branch_$branch-build${{ github.run_number }}/" > gradle.properties.tmp
rm gradle.properties
mv gradle.properties.tmp gradle.properties
- name: Log into registry
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
with: