Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,18 @@ jobs:
uses: ipdxco/unified-github-workflows/.github/workflows/releaser.yml@v1.0
secrets:
UCI_GITHUB_TOKEN: ${{ secrets.UCI_GITHUB_TOKEN }}
# The release above tags with GITHUB_TOKEN unless UCI_GITHUB_TOKEN is set, and
# a tag pushed with GITHUB_TOKEN starts no on.push workflows, so docker.yml's
# tag trigger never fires. workflow_dispatch is the documented exception.
publish-image:
needs: [releaser]
if: fromJSON(needs.releaser.outputs.json)['version.json']
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Start the image build for the new tag
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ fromJSON(needs.releaser.outputs.json)['version.json'].version }}
run: gh workflow run docker.yml --repo "$GITHUB_REPOSITORY" --ref "$TAG"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ For self-hosting, run the [prebuilt Docker image](#docker).
1. Updates [`CHANGELOG.md`](CHANGELOG.md) with entries for the current release
2. Updates the [`version.json`](./version.json) file
2. Once the release checker creates a draft release, copy-paste the changelog into the draft
3. Merge the PR; the release workflow tags and publishes automatically
3. Merge the PR; the release workflow tags, publishes the GitHub release, and starts the [`docker.yml`](.github/workflows/docker.yml) build that pushes `ghcr.io/ipni/needle:vX.Y.Z`

## License

Expand Down
Loading