push-base-image.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: Push base image
  2. on:
  3. push:
  4. tags:
  5. - "v*.*.0"
  6. env:
  7. DOCKER_USER: lcnetdev
  8. DOCKER_PASSWORD: ${{secrets.DOCKER_HUB}}
  9. REPO_NAME: scriptshifter-base
  10. jobs:
  11. push-image-to-docker-hub:
  12. runs-on: ubuntu-latest
  13. steps:
  14. - name: checkout repo
  15. uses: actions/checkout@v4
  16. with:
  17. submodules: recursive
  18. - name: checkout yiddish submodules (1/2)
  19. uses: actions/checkout@v4
  20. with:
  21. repository: ibleaman/loshn-koydesh-pronunciation
  22. path: ext/yiddish/yiddish/submodules/loshn-koydesh-pronunciation
  23. - name: checkout yiddish submodules (2/2)
  24. uses: actions/checkout@v4
  25. with:
  26. repository: ibleaman/hasidify_lexicon
  27. path: ext/yiddish/yiddish/submodules/hasidify_lexicon
  28. - name: Build the Docker image
  29. run: >
  30. docker build -f scriptshifter_base.Dockerfile .
  31. --tag $DOCKER_USER/$REPO_NAME:${{ github.ref_name }}
  32. --tag $DOCKER_USER/$REPO_NAME:latest
  33. - name: Login to Docker Hub
  34. uses: docker/login-action@v3
  35. with:
  36. username: lcnetdev
  37. password: ${{ secrets.DOCKER_HUB }}
  38. - name: Push to Docker Hub
  39. run: docker push $DOCKER_USER/$REPO_NAME --all-tags