mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-19 19:59:13 +03:00
GHA fixes
This commit is contained in:
parent
86e52c5868
commit
19527ef1e0
1 changed files with 5 additions and 8 deletions
13
.github/workflows/docker-build.yml
vendored
13
.github/workflows/docker-build.yml
vendored
|
@ -14,9 +14,6 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
|
||||
# set environment
|
||||
- name: Set APP_VERSION env
|
||||
run: echo "APP_VERSION=$(echo ${GITHUB_REF} | rev | cut -d'/' -f 1 | rev )" >> $GITHUB_ENV
|
||||
|
||||
- name: Set BUILD_TIME env
|
||||
run: echo "BUILD_TIME=$(date)" >> $GITHUB_ENV
|
||||
|
||||
|
@ -45,17 +42,17 @@ jobs:
|
|||
app_version=${github_tag}
|
||||
|
||||
container_images=$(cat <<END_HEREDOC
|
||||
${base}:${github_tag}
|
||||
END_HEREDOC
|
||||
)
|
||||
${base}:${github_tag}
|
||||
END_HEREDOC
|
||||
)
|
||||
|
||||
## Set 'latest' image tag if 'main' or 'master'
|
||||
## branch is pushed
|
||||
##
|
||||
elif [[ '${{ github.ref }}' == 'refs/heads/master' || '${{ github.ref }}' == 'refs/heads/main' ]]; then
|
||||
container_images=$(cat <<END_HEREDOC
|
||||
${base}:latest
|
||||
END_HEREDOC
|
||||
${base}:latest
|
||||
END_HEREDOC
|
||||
)
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue