🎨 https://github.com/88250/solo/pull/280 #297
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: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_HUB_USER }} | |
| password: ${{ secrets.DOCKER_HUB_PWD }} | |
| - name: Build and push multi-platform Docker image | |
| run: | | |
| docker buildx build \ | |
| --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v8 \ | |
| --build-arg git_commit=$(git rev-parse --short HEAD) \ | |
| -t b3log/solo:latest \ | |
| --push . | |