rm dynamic imports, favored static, used phx-trigger-action, refactor… #79
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # name: DockerHub Deploy | |
| # on: | |
| # push: | |
| # branches: | |
| # - main | |
| # jobs: | |
| # docker: | |
| # if: github.repository == 'ndrean/liveview-pwa' | |
| # name: Build and Push to Docker Hub | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - name: Checkout code | |
| # uses: actions/checkout@v4 | |
| # - name: Log in to Docker Hub | |
| # uses: docker/login-action@v3 | |
| # with: | |
| # username: ${{ secrets.DOCKER_USERNAME }} | |
| # password: ${{ secrets.DOCKER_PASSWORD }} | |
| # - name: Extract commit SHA | |
| # id: vars | |
| # run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
| # - name: Build Docker image | |
| # run: docker build -t ndrean/pwa-liveview:${{ steps.vars.outputs.sha_short }} . | |
| # - name: Push Docker image | |
| # run: docker push ndrean/pwa-liveview:${{ steps.vars.outputs.sha_short }} |