Better name for the RPM release variable
This commit is contained in:
parent
c15a9c152c
commit
50ab261a4e
2 changed files with 3 additions and 3 deletions
2
.github/workflows/live_artifacts.yml
vendored
2
.github/workflows/live_artifacts.yml
vendored
|
@ -84,7 +84,7 @@ jobs:
|
|||
- name: Build Artifact
|
||||
run: |
|
||||
mkdir -p ${GITHUB_WORKSPACE}/artifacts
|
||||
docker run -e LIVE=1 -e TAG=$TAG -e REPO_TO_BUILD=$REPO_TO_BUILD \
|
||||
docker run -e LIVE=1 -e TAG=$TAG -e REPO_TO_BUILD=$REPO_TO_BUILD -e RPM_RELEASE=1 \
|
||||
-v ${GITHUB_WORKSPACE}:/workspace \
|
||||
-v ${GITHUB_WORKSPACE}/artifacts:/root/rpmbuild \
|
||||
nanocurrency/nano-env:centos /bin/bash -c "ci/build-centos.sh"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
TAG=$(echo $TAG)
|
||||
VERSIONS=${TAG//V/}
|
||||
RELEASE=$(echo $CI_JOB_ID)
|
||||
RPM_RELEASE=$(echo $RPM_RELEASE)
|
||||
REPO_TO_BUILD=$(echo $REPO_TO_BUILD)
|
||||
|
||||
run_source() {
|
||||
|
@ -25,7 +25,7 @@ run_update() {
|
|||
echo "Updating \"${outfile}\"..."
|
||||
|
||||
rm -f "${file}.new"
|
||||
awk -v srch="@VERSION@" -v repl="$VERSIONS" -v srch2="@RELEASE@" -v repl2="$RELEASE" '{ sub(srch,repl,$0); sub(srch2,repl2, $0); print $0}' <${file} >${file}.new
|
||||
awk -v srch="@VERSION@" -v repl="$VERSIONS" -v srch2="@RELEASE@" -v repl2="$RPM_RELEASE" '{ sub(srch,repl,$0); sub(srch2,repl2, $0); print $0}' <${file} >${file}.new
|
||||
rm -fr "${outfile}"
|
||||
cat "${file}.new" >"${outfile}"
|
||||
rm -f "${file}.new"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue