diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 53cae29..43d005f 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -14,6 +14,9 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Generate Date + id: date + run: echo "::set-output name=date::$(date +%Y%m%d%H%M%S)" - name: Build and push Docker images # You may pin to the exact commit or the version. # uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 @@ -21,4 +24,4 @@ jobs: with: push: true # List of tags - tags: openai-api-server:$(date +%s) + tags: openai-api-server:${{ steps.date.outputs.date }}