fix: fix shell required

This commit is contained in:
seepine 2025-02-17 23:50:39 +08:00 committed by GitHub
parent 377c4f2be0
commit 714e077b61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,6 +41,7 @@ runs:
using: 'composite'
steps:
- name: Set up Proxy env
shell: bash
run: |
echo "[$(date +'%Y-%m-%d %H:%M:%S')] ⚙️ Set up Proxy env"
if [ -n "${{ env.HTTP_PROXY }}" ]; then
@ -57,12 +58,14 @@ runs:
echo "no_proxy=${{ env.no_proxy }}"
- name: echo Set up QEMU
shell: bash
run: echo -e "\n[$(date +'%Y-%m-%d %H:%M:%S')] ⚙️ Set up QEMU"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: echo Set up Docker BuildX
shell: bash
run: echo -e "\n[$(date +'%Y-%m-%d %H:%M:%S')] ⚙️ Set up Docker BuildX"
- name: Set up Docker BuildX
@ -74,6 +77,7 @@ runs:
"env.no_proxy='${{ env.no_proxy }}'"
- name: echo Login to DockerHub
shell: bash
run: echo -e "\n[$(date +'%Y-%m-%d %H:%M:%S')] ⚙️ Login to DockerHub"
if: ${{ inputs.username != '' }}
@ -90,6 +94,7 @@ runs:
NO_PROXY: ${{ env.no_proxy }}
- name: echo Cache docker build
shell: bash
run: echo -e "\n[$(date +'%Y-%m-%d %H:%M:%S')] ⚙️ Cache docker build"
- name: Cache docker build
@ -99,10 +104,12 @@ runs:
key: ${{ runner.os }}-docker-build-cache
- name: echo Build and push
shell: bash
run: echo -e "\n[$(date +'%Y-%m-%d %H:%M:%S')] ⚙️ Build and push"
- name: Get docker meta
id: meta
shell: bash
run: |
if [ -n "${{ inputs.tags }}" ]; then
echo TAGS=$(echo "${{ inputs.tags }}" | tr '\n' ',' | sed 's/,$//') >> $GITHUB_OUTPUT
@ -119,6 +126,7 @@ runs:
fi
- name: echo Get docker meta
shell: bash
run: |
echo -e "\n[$(date +'%Y-%m-%d %H:%M:%S')] ⚙️ Get docker meta"
echo TAGS=${{ steps.meta.outputs.TAGS }}