-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix GitHub action error in posting the container when merged to main (#…
…633) * Fixed github action error on publishing the container when merging to main branch * finished the test and put the code back to work with main branch --------- Co-authored-by: Chen Wang <[email protected]>
- Loading branch information
1 parent
626fc5c
commit 3ca7072
Showing
2 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,8 @@ jobs: | |
tags="${tags},${version}" | ||
version=${version%.*} | ||
done | ||
# Remove any unwanted double quotes from tags | ||
tags=$(echo $tags | sed 's/"//g') | ||
echo "VERSION=${version}" >> $GITHUB_ENV | ||
echo "TAGS=${tags}" >> $GITHUB_ENV | ||
elif [ "$BRANCH" == "develop" ]; then | ||
|
@@ -61,6 +63,10 @@ jobs: | |
echo "TAGS=${BRANCH}" >> $GITHUB_ENV | ||
fi | ||
# debug TAGS | ||
- name: Debug TAGS | ||
run: echo "TAGS=${{ env.TAGS }}" | ||
|
||
# build image | ||
- name: Build image | ||
uses: elgohr/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters