Skip to content

Commit

Permalink
steps.date.outputs.date
Browse files Browse the repository at this point in the history
  • Loading branch information
bsamadi committed Jan 1, 2024
1 parent 4e304e7 commit c87a0dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ 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
uses: docker/[email protected]
with:
push: true
# List of tags
tags: openai-api-server:$(date +%s)
tags: openai-api-server:${{ steps.date.outputs.date }}

0 comments on commit c87a0dc

Please sign in to comment.