Skip to content

Commit

Permalink
fix time function
Browse files Browse the repository at this point in the history
Signed-off-by: binaryYuki <60097976+binaryYuki@users.noreply.github.com>
  • Loading branch information
binaryYuki committed Aug 25, 2024
1 parent b13452b commit 13e2f13
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/autoci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ jobs:
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

-
name: Read .env file
id: dotenv
run: |
echo "COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_ENV
echo "BUILD_AT=$(date)" >> $GITHUB_ENV
- name: Read Commit ID
id: commit_id
run: echo "COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_ENV

- name: Read Build Date
id: build_date
run: echo "BUILD_AT=$(date)" >> $GITHUB_ENV


-
name: Login to Docker Hub
Expand All @@ -36,13 +38,9 @@ jobs:
with:
context: .
platforms: linux/amd64,linux/arm64

push: true
tags: akkk1234/oleapi:latest
build-args: |
COMMIT_ID=${{ env.COMMIT_ID }}
BUILD_AT=${{ env.BUILD_AT }}
- name: trigger deploy webhook
run: |
curl -X POST -H "Content-Type: application/json" -d '{"token": ${{ secrets.DEPLOY_TOKEN }}}' ${{ secrets.DEPLOY_WEBHOOK }}
BUILD_AT=${{ env.date }}

0 comments on commit 13e2f13

Please sign in to comment.