允许下载文件的名称与上传文件的名称保持一致 #2055
Workflow file for this run
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
name: Test Docker Build | |
on: | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
- '.devcontainer' | |
- '.vscode' | |
- 'LICENSE' | |
- 'Procfile*' | |
- '*.yaml' | |
- '*.yml' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Set Docker Build Date | |
id: build_date | |
run: echo "BUILD_DATE_TAG=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT | |
- name: Docker metadata | |
id: metadata | |
uses: docker/metadata-action@v5 | |
with: | |
images: ghcr.io/${{ github.repository }} | |
- name: Test build | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
push: false | |
labels: ${{ steps.metadata.outputs.labels }} | |
tags: | | |
${{ steps.metadata.outputs.tags }} | |
platforms: linux/amd64,linux/arm64 | |
build-args: | | |
REPLACE_CHINA_MIRROR=false | |
VCS_REF=${{ github.sha }} | |
BUILD_DATE=${{ steps.build_date.outputs.BUILD_DATE_TAG }} |