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
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
# set environment
|
# 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
|
- name: Set BUILD_TIME env
|
||||||
run: echo "BUILD_TIME=$(date)" >> $GITHUB_ENV
|
run: echo "BUILD_TIME=$(date)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
@ -45,17 +42,17 @@ jobs:
|
||||||
app_version=${github_tag}
|
app_version=${github_tag}
|
||||||
|
|
||||||
container_images=$(cat <<END_HEREDOC
|
container_images=$(cat <<END_HEREDOC
|
||||||
${base}:${github_tag}
|
${base}:${github_tag}
|
||||||
END_HEREDOC
|
END_HEREDOC
|
||||||
)
|
)
|
||||||
|
|
||||||
## Set 'latest' image tag if 'main' or 'master'
|
## Set 'latest' image tag if 'main' or 'master'
|
||||||
## branch is pushed
|
## branch is pushed
|
||||||
##
|
##
|
||||||
elif [[ '${{ github.ref }}' == 'refs/heads/master' || '${{ github.ref }}' == 'refs/heads/main' ]]; then
|
elif [[ '${{ github.ref }}' == 'refs/heads/master' || '${{ github.ref }}' == 'refs/heads/main' ]]; then
|
||||||
container_images=$(cat <<END_HEREDOC
|
container_images=$(cat <<END_HEREDOC
|
||||||
${base}:latest
|
${base}:latest
|
||||||
END_HEREDOC
|
END_HEREDOC
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue