fixed: book content height, added: new icons in reader for theme comp… #49
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
| name: Build & Push Docker image | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ['v*'] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4.2.2 | |
| - name: Determine registry and image name | |
| id: reg | |
| run: | | |
| SERVER="${{ github.server_url }}" | |
| if [[ "$SERVER" == "https://github.com" ]]; then | |
| REGISTRY="ghcr.io" | |
| else | |
| REGISTRY="${SERVER#https://}" | |
| fi | |
| IMAGE="$REGISTRY/$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" | |
| echo "host=$REGISTRY" >> $GITHUB_OUTPUT | |
| echo "image=$IMAGE" >> $GITHUB_OUTPUT | |
| - name: Log in to container registry | |
| run: | | |
| echo "${{ secrets.REGISTRY_TOKEN }}" | \ | |
| docker login ${{ steps.reg.outputs.host }} -u ${{ secrets.REGISTRY_USER }} --password-stdin | |
| - name: Build Docker image | |
| run: docker build -t ${{ steps.reg.outputs.image }}:latest . | |
| - name: Tag with version (on git tag push) | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| run: | | |
| VERSION="${{ github.ref_name }}" | |
| VERSION="${VERSION#v}" | |
| docker tag ${{ steps.reg.outputs.image }}:latest ${{ steps.reg.outputs.image }}:${VERSION} | |
| echo "VERSION=${VERSION}" >> $GITHUB_ENV | |
| - name: Push latest | |
| run: docker push ${{ steps.reg.outputs.image }}:latest | |
| - name: Push version tag | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| run: docker push ${{ steps.reg.outputs.image }}:${{ env.VERSION }} |