build-image.yml 620 B

12345678910111213141516171819202122232425262728
  1. name: Docker Build And Push To Docker Hub
  2. on:
  3. push:
  4. branches:
  5. # - master
  6. tags:
  7. - v*
  8. jobs:
  9. build:
  10. name: Build Proxy Panel
  11. runs-on: ubuntu-18.04
  12. steps:
  13. - name: Git Checkout Code
  14. uses: actions/checkout@v1
  15. id: git_checkout
  16. - name: Build and push Docker images
  17. uses: docker/build-push-action@v1
  18. with:
  19. push: true
  20. username: ${{ secrets.DOCKER_USERNAME }}
  21. password: ${{ secrets.DOCKER_PASSWORD }}
  22. repository: v2cc/proxypanel
  23. tag_with_ref: true
  24. tag_with_sha: true
  25. tags: latest