fix: improve Dockerfiles 2

This commit is contained in:
zk
2026-05-15 20:34:56 +00:00
parent 88b106310c
commit da1fdafa51
3 changed files with 19 additions and 0 deletions
+7
View File
@@ -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