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
32 changes: 32 additions & 0 deletions .github/workflows/release-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Build and publish Docker image"

on:
push:
tags:
- payjoin-service-**
workflow_dispatch:

jobs:
build:
name: "Build and publish Docker image"
strategy:
fail-fast: false
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.PAYJOIN_DOCKER_RW }}

- name: Build and release image
run: nix run .#packages.x86_64-linux.payjoin-service-image.copyToRegistry
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@
releasePkg = pkg.overrideAttrs (final: prev: { CARGO_PROFILE = "release"; });
in
nix2containerPkgs.nix2container.buildImage {
inherit name tag;
inherit tag;
name = "docker.io/payjoin/${name}";
Comment on lines +178 to +179
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this change achieve?

Copy link
Copy Markdown
Collaborator Author

@benalleng benalleng Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name is what .copyToRegistry tries to push to, without the explicit name the inherited name I think is just a dummy payjoin/payjoin-service-image pathname. Testing this now to confirm

copyToRoot = pkgs.buildEnv {
name = "root";
paths = [ releasePkg ];
Expand Down
Loading