Boost mysql #401
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker Image CI | |
| on: | |
| push: | |
| branches: [ "development" ] | |
| pull_request: | |
| branches: [ "development" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/[email protected] | |
| - name: Docker Cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: /tmp/docker-cache | |
| key: docker-cache-${{ runner.os }}-${{ hashFiles('Dockerfile') }} | |
| restore-keys: docker-cache-${{ runner.os }} | |
| - name: Build the Docker image | |
| run: | | |
| docker buildx create --use --name mybuilder || docker buildx use mybuilder | |
| docker buildx build \ | |
| --load \ | |
| --file Dockerfile \ | |
| --cache-from=type=local,src=/tmp/docker-cache \ | |
| --cache-to=type=local,dest=/tmp/docker-cache,mode=max \ | |
| . |