feat: Add responsive overflow menu for all file actions and hide shor… #191
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 CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Set up metadata | |
| id: meta | |
| uses: docker/metadata-action@v3 | |
| with: | |
| images: pojntfx/bofied-backend | |
| tags: type=semver,pattern={{version}} | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v1 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v1 | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v1 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_TOKEN }} | |
| - name: Build image | |
| uses: docker/build-push-action@v2 | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| platforms: linux/amd64,linux/arm64/v8,linux/arm/v7 | |
| push: false | |
| tags: pojntfx/bofied-backend:unstable | |
| labels: ${{ steps.meta.outputs.labels }} | |
| - name: Push pre-release image to Docker Hub | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| uses: docker/build-push-action@v2 | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| platforms: linux/amd64,linux/arm64/v8,linux/arm/v7 | |
| push: true | |
| tags: pojntfx/bofied-backend:unstable | |
| labels: ${{ steps.meta.outputs.labels }} | |
| - name: Push release image to Docker Hub | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| uses: docker/build-push-action@v2 | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| platforms: linux/amd64,linux/arm64/v8,linux/arm/v7 | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} |