publish_docker inline cache + .gitattributes 强制LF行尾
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
*.yml text eol=lf
|
||||||
|
*.yaml text eol=lf
|
||||||
|
*.json text eol=lf
|
||||||
|
*.sh text eol=lf
|
||||||
|
*.md text eol=lf
|
||||||
|
.gitignore text eol=lf
|
||||||
|
.gitattributes text eol=lf
|
||||||
@@ -96,14 +96,6 @@ jobs:
|
|||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=semver,pattern=v{{major}}
|
type=semver,pattern=v{{major}}
|
||||||
|
|
||||||
# - name: Cache docker buildx main
|
|
||||||
# uses: actions/cache@v4
|
|
||||||
# with:
|
|
||||||
# path: /tmp/.buildx-main-cache
|
|
||||||
# key: ${{ runner.os }}-buildx-main-${{ github.sha }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ runner.os }}-buildx-main-
|
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
@@ -121,13 +113,5 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
# cache-from: type=local,src=/tmp/.buildx-main-cache
|
cache-from: type=registry,ref=${{ secrets.REGISTRY_HOST }}/${{ inputs.docker_image_name }}:latest
|
||||||
# cache-to: type=local,mode=max,dest=/tmp/.buildx-main-cache-new
|
cache-to: type=inline,mode=max
|
||||||
|
|
||||||
# - # Temp fix
|
|
||||||
# # https://github.com/docker/build-push-action/issues/252
|
|
||||||
# # https://github.com/moby/buildkit/issues/1896
|
|
||||||
# name: Move cache
|
|
||||||
# run: |
|
|
||||||
# rm -rf /tmp/.buildx-main-cache
|
|
||||||
# mv /tmp/.buildx-main-cache-new /tmp/.buildx-main-cache
|
|
||||||
Reference in New Issue
Block a user