You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB

  1. name: Publish Docker image
  2. on:
  3. release:
  4. types: [published]
  5. workflow_dispatch:
  6. jobs:
  7. push_to_registry:
  8. name: Push Docker image to Docker Hub
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Check out the repo
  12. uses: actions/checkout@v2
  13. - name: Log in to Docker Hub
  14. uses: docker/login-action@v1
  15. with:
  16. username: ${{ secrets.DOCKERHUB_USERNAME }}
  17. password: ${{ secrets.DOCKERHUB_TOKEN }}
  18. - name: Extract metadata (tags, labels) for Docker
  19. id: meta
  20. uses: docker/metadata-action@v3
  21. with:
  22. images: healthchecks/healthchecks
  23. - name: Set up QEMU
  24. uses: docker/[email protected]
  25. - name: Set up Docker Buildx
  26. uses: docker/setup-buildx-action@v1
  27. - name: Build and push Docker image
  28. uses: docker/build-push-action@v2
  29. with:
  30. context: .
  31. file: docker/Dockerfile
  32. platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
  33. push: true
  34. tags: ${{ steps.meta.outputs.tags }}
  35. labels: ${{ steps.meta.outputs.labels }}