Skip to content

Commit

Permalink
ci: 完善构建测试镜像脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
Mereithhh committed Sep 3, 2022
1 parent ba6b663 commit cd5dc19
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get version
id: get_version
run: |
TIMEVERSION=$(date "+%Y%m%d-%H%M%S")
echo ::set-output name=VERSION::${TIMEVERSION}
- name: 展示版本
run: echo ${{ steps.get_version.outputs.VERSION }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
Expand All @@ -36,4 +43,4 @@ jobs:
platforms: linux/amd64
push: true
tags: |
"docker.io/mereith/van-blog:test-0902"
"docker.io/mereith/van-blog:${{ steps.get_version.outputs.VERSION }}"

0 comments on commit cd5dc19

Please sign in to comment.