docker-image-private.yml 735 B

1234567891011121314151617181920212223242526272829303132
  1. name: Docker Image CI
  2. on:
  3. push:
  4. branches: [ "private" ]
  5. pull_request:
  6. branches: [ "private" ]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v3
  12. - uses: docker/[email protected]
  13. with:
  14. username: ${{ secrets.DOCKERHUB_USERNAME }}
  15. password: ${{ secrets.DOCKERHUB_TOKEN }}
  16. - name: Extract metadata (tags, labels) for Docker
  17. id: meta
  18. uses: docker/metadata-action@v3
  19. with:
  20. images: calciumion/neko-api
  21. - name: Build the Docker image
  22. uses: docker/[email protected]
  23. with:
  24. context: .
  25. push: true
  26. tags: ${{ steps.meta.outputs.tags }}
  27. labels: ${{ steps.meta.outputs.labels }}