Auto-derive SETTINGS_FILE from LIBRARR_DB_PATH; probe writability at … #14
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: Release | |
| on: | |
| push: | |
| tags: ['v*'] | |
| permissions: | |
| contents: write | |
| packages: write | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: {fetch-depth: 0} | |
| - uses: actions/setup-go@v5 | |
| with: {go-version: '1.25', cache: false} | |
| - run: go test ./... -count=1 | |
| - uses: goreleaser/goreleaser-action@v6 | |
| with: {version: '~> v2', args: "release --clean"} | |
| env: {GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"} | |
| docker: | |
| runs-on: ubuntu-latest | |
| permissions: {packages: write} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Lowercase owner | |
| id: owner | |
| run: echo "name=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT | |
| - uses: docker/login-action@v3 | |
| with: {registry: ghcr.io, username: "${{ github.actor }}", password: "${{ secrets.GITHUB_TOKEN }}"} | |
| - id: version | |
| run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | |
| - uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| push: true | |
| tags: | | |
| ghcr.io/${{ steps.owner.outputs.name }}/librarr:${{ steps.version.outputs.tag }} | |
| ghcr.io/${{ steps.owner.outputs.name }}/librarr:latest |