apisix_dev_push_docker_hub.yaml 852 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: Build and Push apisix-dev to Docker DockerHub
  2. on:
  3. schedule:
  4. # UTC 0:00 AM (See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07)
  5. - cron: "0 1 * * *"
  6. push:
  7. branches: [master]
  8. paths-ignore:
  9. - 'docs/**'
  10. - '**/*.md'
  11. jobs:
  12. build:
  13. runs-on: ubuntu-latest
  14. steps:
  15. - name: Check out the repo
  16. uses: actions/checkout@v2
  17. - name: Login to Docker Hub
  18. uses: docker/login-action@v1
  19. with:
  20. username: ${{ secrets.DOCKERHUB_USER }}
  21. password: ${{ secrets.DOCKERHUB_TOKEN }}
  22. - name: Set up QEMU
  23. uses: docker/setup-qemu-action@v1
  24. - name: Set up Docker Buildx
  25. uses: docker/setup-buildx-action@v1
  26. - name: Push apisix image to Docker Hub
  27. run: |
  28. make push-multiarch-dev-on-debian