publish-docker.yml 554 B

12345678910111213141516171819202122232425
  1. name: Publish Docker
  2. on:
  3. push:
  4. branches:
  5. - release
  6. jobs:
  7. publish-docker:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout repository
  11. uses: actions/checkout@v3
  12. - name: Login to DockerHub
  13. uses: docker/login-action@v2
  14. with:
  15. username: ${{ secrets.DOCKER_USERNAME }}
  16. password: ${{ secrets.DOCKER_PASSWORD }}
  17. - name: Build and push
  18. uses: docker/build-push-action@v3
  19. with:
  20. context: .
  21. push: true
  22. tags: excalidraw/excalidraw:latest