stunning screenshots in seconds https://moocup.jaydip.me

fix: added multi-arch images and versioning

+15 -4
+15 -4
.github/workflows/docker-build.yml
··· 2 2 3 3 on: 4 4 push: 5 - branches: ["main"] 5 + branches: 6 + - main 6 7 7 8 jobs: 8 9 docker: 9 10 runs-on: ubuntu-latest 10 - 11 11 steps: 12 12 - name: Checkout source 13 13 uses: actions/checkout@v4 14 14 15 + # Auto Tag: generates next semantic version (v1.0.0, v1.1.0, etc.) 16 + - name: Auto Tag 17 + id: autotag 18 + uses: phish108/autotag-action@v1.1.62 19 + with: 20 + github_token: ${{ secrets.GITHUB_TOKEN }} 21 + 15 22 - name: Log in to Docker Hub 16 23 uses: docker/login-action@v2 17 24 with: ··· 21 28 - name: Set up Docker Buildx 22 29 uses: docker/setup-buildx-action@v3 23 30 24 - - name: Build and push 31 + # Multiarch Docker build and push with BOTH version tag and latest 32 + - name: Build and push Docker image 25 33 uses: docker/build-push-action@v5 26 34 with: 27 35 context: . 28 36 push: true 29 - tags: ${{ secrets.DOCKERHUB_USERNAME }}/moocup:latest 37 + platforms: linux/amd64,linux/arm64 38 + tags: | 39 + ${{ secrets.DOCKERHUB_USERNAME }}/moocup:${{ steps.autotag.outputs.tag }} 40 + ${{ secrets.DOCKERHUB_USERNAME }}/moocup:latest