mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-30 02:48:01 +03:00
fix: improve Dockerfiles 2
This commit is contained in:
@@ -35,6 +35,10 @@ jobs:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
|
||||
|
||||
- name: Set build time
|
||||
id: build_time
|
||||
run: echo "value=$(date -u +%Y-%m-%dT%H:%M:%SZ)" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
|
||||
with:
|
||||
@@ -47,6 +51,9 @@ jobs:
|
||||
ghcr.io/zkldi/tachi-ghbot:${{ github.sha }}
|
||||
ghcr.io/zkldi/tachi-ghbot:main
|
||||
ghcr.io/zkldi/tachi-ghbot:latest
|
||||
build-args: |
|
||||
COMMIT_HASH=${{ github.sha }}
|
||||
BUILD_TIME=${{ steps.build_time.outputs.value }}
|
||||
cache-from: type=gha,scope=${{ github.ref_name }}-github-bot
|
||||
cache-to: type=gha,mode=max,scope=${{ github.ref_name }}-github-bot
|
||||
|
||||
|
||||
Reference in New Issue
Block a user