2
0

prerelease.yml 795 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: Pre Release
  2. on:
  3. push:
  4. branches:
  5. - master
  6. jobs:
  7. build-image-for-cache:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v2
  11. - name: Set up Docker Buildx
  12. uses: crazy-max/ghaction-docker-buildx@v3
  13. - name: Cache Docker layers
  14. uses: actions/cache@v2
  15. id: cache
  16. with:
  17. path: /tmp/.buildx-cache
  18. key: ${{ runner.OS }}-buildx-${{ hashFiles('**/yarn.lock') }}-default
  19. restore-keys: |
  20. ${{ runner.os }}-buildx-
  21. - name: Build Docker Image
  22. run: |
  23. docker buildx build \
  24. --cache-from "type=local,src=/tmp/.buildx-cache" \
  25. --cache-to "type=local,dest=/tmp/.buildx-cache" \
  26. --platform linux/amd64 \
  27. --load \
  28. --file ./docker/Dockerfile .