docker.yml 483 B

1234567891011121314151617181920212223
  1. name: ci
  2. on:
  3. push:
  4. branches:
  5. - 'master'
  6. jobs:
  7. docker:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Login to GitHub Container Registry
  11. uses: docker/login-action@v2
  12. with:
  13. registry: ghcr.io
  14. username: ${{ github.repository_owner }}
  15. password: ${{ secrets.GITHUB_TOKEN }}
  16. - name: Build and push
  17. uses: docker/build-push-action@v3
  18. with:
  19. push: true
  20. tags: ghcr.io/polymc/bot:latest