Spaces:
Runtime error
Runtime error
| name: Push to Docker Hub | |
| on: | |
| push: | |
| tags: | |
| - '*.*.*' | |
| jobs: | |
| build-and-push-docker: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }} | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: joshuasundance | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Build Docker image | |
| run: | | |
| docker build \ | |
| -t joshuasundance/streamlit-gpt4o:${{ github.ref_name }} \ | |
| -t joshuasundance/streamlit-gpt4o:latest \ | |
| . | |
| - name: Push to Docker Hub | |
| run: docker push -a joshuasundance/streamlit-gpt4o | |