docker-publish.yml 849 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Publish Docker image
  2. on:
  3. push:
  4. branches:
  5. - master
  6. paths-ignore:
  7. - "**/README"
  8. jobs:
  9. docker-publish:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Checkout
  13. uses: actions/checkout@v4
  14. - name: Set up QEMU
  15. uses: docker/setup-qemu-action@v3
  16. - name: Set up Docker Buildx
  17. uses: docker/setup-buildx-action@v3
  18. - name: Login to Docker Hub
  19. uses: docker/login-action@v3
  20. with:
  21. username: ${{ secrets.DOCKERHUB_USERNAME }}
  22. password: ${{ secrets.DOCKERHUB_TOKEN }}
  23. - name: Build and push
  24. uses: docker/build-push-action@v6
  25. with:
  26. context: .
  27. platforms: linux/amd64,linux/arm64
  28. push: true
  29. tags: migalmoreno/tubo:latest
  30. cache-from: type=gha
  31. cache-to: type=gha,mode=max