Test release workflow #18
Workflow file for this run
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
| on: | |
| push: | |
| tags: | |
| - "[0-9]*.[0-9]*.[0-9]*" | |
| jobs: | |
| docker: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: "actions/checkout@v6" | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Update version from tag | |
| run: | | |
| VERSION="${GITHUB_REF_NAME}" | |
| echo "Version is: ${VERSION}" | |
| [[ "${VERSION}" =~ ^[0-9]+[.][0-9]+[.][0-9]+$ ]] | |
| echo "__version__ = \"${VERSION}\"" > pythonhere/version_here.py | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_TOKEN }} | |
| # - name: Build and push | |
| # id: docker_build | |
| # uses: docker/build-push-action@v6 | |
| # with: | |
| # context: . | |
| # file: ./Dockerfile | |
| # push: true | |
| # tags: | | |
| # herethere/pythonhere:latest | |
| # herethere/pythonhere:${{ github.ref_name }} | |
| # - name: Image digest | |
| # run: echo ${{ steps.docker_build.outputs.digest }} |