Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowofgost committed May 8, 2024
1 parent e06daf9 commit 8d15e7d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/Printdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
- name: Print formatted datetime
run: |
formatted_datetime=$(date -d "${{ github.event.head_commit.timestamp }}" +'%Y-%m-%d %H:%M:%S')
formatted_datetime=$(date -d "${{ github.event.head_commit.timestamp }}" +'%Y-%m-%d)
echo "Formatted Datetime: $formatted_datetime"
8 changes: 8 additions & 0 deletions .github/workflows/quant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get formatted datetime
id: datetime
run: |
formatted_datetime=$(date -d "${{ github.event.head_commit.timestamp }}" +'%Y-%m-%d)
echo "Formatted Datetime: $formatted_datetime"
- name: Build and push quant Docker images to docker.io and ghcr.io
uses: docker/build-push-action@v5
with:
Expand All @@ -40,4 +46,6 @@ jobs:
push: true
tags: |
ghcr.io/shadowofgost/quant:latest
ghcr.io/shadowofgost/quant:${{steps.datetime.outputs.formatted_datetime}}
shadowofgost/quant:${{steps.datetime.outputs.formatted_datetime }}
shadowofgost/quant:latest

0 comments on commit 8d15e7d

Please sign in to comment.