您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

dockerfile.yml 474 B

1234567891011121314151617181920212223242526
  1. name: Docker image
  2. on:
  3. push:
  4. branches: [master, features]
  5. pull_request:
  6. branches: [master, features]
  7. jobs:
  8. build-image:
  9. runs-on: ubuntu-latest
  10. name: Test building Docker image
  11. steps:
  12. - uses: actions/checkout@v1
  13. - name: Set up Docker
  14. uses: docker-practice/actions-setup-docker@v1
  15. - name: Create image
  16. run: |
  17. docker build -t kosmorro .
  18. - name: Execute image
  19. run: |
  20. docker run kosmorro kosmorro