ADD: 环境变量支持调整api timeout
This commit is contained in:
6
.github/workflows/docker-image.yml
vendored
6
.github/workflows/docker-image.yml
vendored
@@ -16,6 +16,10 @@ jobs:
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Get current time
|
||||
id: time
|
||||
run: echo "TIME=$(date +'%Y%m%d%H%M')" >> $GITHUB_ENV
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
@@ -33,4 +37,4 @@ jobs:
|
||||
push: true
|
||||
tags: |
|
||||
${{ secrets.DOCKERHUB_USERNAME }}/stock-scanner:latest
|
||||
${{ secrets.DOCKERHUB_USERNAME }}/stock-scanner:${{ github.sha }}
|
||||
${{ secrets.DOCKERHUB_USERNAME }}/stock-scanner:${{ env.TIME }}
|
||||
|
||||
Reference in New Issue
Block a user