修改8
Some checks failed
Build and Release / build-and-test (arm64, alpine) (push) Successful in 8s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 7s
Build and Release / build-and-test (amd64, alpine) (push) Successful in 15s
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 14s
Build and Release / docker-images (push) Has been cancelled
Build and Release / release (push) Has been cancelled
Some checks failed
Build and Release / build-and-test (arm64, alpine) (push) Successful in 8s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 7s
Build and Release / build-and-test (amd64, alpine) (push) Successful in 15s
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 14s
Build and Release / docker-images (push) Has been cancelled
Build and Release / release (push) Has been cancelled
This commit is contained in:
@@ -79,10 +79,17 @@ jobs:
|
||||
docker-images:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-and-test
|
||||
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/')
|
||||
if: github.ref_name == 'main' || github.ref_name == 'develop' || startsWith(github.ref, 'refs/tags/')
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
||||
- name: Debug branch info
|
||||
run: |
|
||||
echo "📋 Branch Information:"
|
||||
echo " github.ref: ${{ github.ref }}"
|
||||
echo " github.ref_name: ${{ github.ref_name }}"
|
||||
echo " github.event_name: ${{ github.event_name }}"
|
||||
|
||||
- uses: https://github.com/ChristopherHX/gitea-download-artifact@v4
|
||||
with:
|
||||
pattern: binaries-*
|
||||
@@ -110,12 +117,15 @@ jobs:
|
||||
- name: Determine Docker tag
|
||||
id: tag
|
||||
run: |
|
||||
case "${{ github.ref }}" in
|
||||
refs/heads/main) TAG="latest" ;;
|
||||
refs/heads/develop) TAG="develop" ;;
|
||||
refs/tags/*) TAG="${GITHUB_REF#refs/tags/}" ;;
|
||||
*) TAG="${{ github.ref_name }}" ;;
|
||||
esac
|
||||
if [ "${{ github.ref_name }}" = "main" ]; then
|
||||
TAG="latest"
|
||||
elif [ "${{ github.ref_name }}" = "develop" ]; then
|
||||
TAG="develop"
|
||||
elif [[ "${{ github.ref }}" == refs/tags/* ]]; then
|
||||
TAG="${{ github.ref_name }}"
|
||||
else
|
||||
TAG="${{ github.ref_name }}"
|
||||
fi
|
||||
echo "tag=${TAG}" >> $GITHUB_OUTPUT
|
||||
echo "📦 Docker tag: ${TAG}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user