diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 913a89f..1a47e5b 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -50,7 +50,9 @@ jobs: tags: | ${{ needs.release-please.outputs.tag }} oci: true - extra-args: "-v ${{ github.workspace }}:/app" + extra-args: | + -v ${{ github.workspace }}:/app + --target rpm - name: upload output artifacts as release artifact uses: actions/upload-artifact@v3 diff --git a/Containerfile.builder b/Containerfile.builder index 86b7eaf..df05bcc 100644 --- a/Containerfile.builder +++ b/Containerfile.builder @@ -17,5 +17,8 @@ RUN dnf install \ rpm-build && \ mkdir -p "$UBLUE_ROOT" && \ rpkg spec --outdir "$UBLUE_ROOT" && \ - dnf builddep -y output/ublue-update.spec && \ - [ "$CI" = "true" ] && make build-rpm + dnf builddep -y output/ublue-update.spec + +FROM builder AS rpm + +RUN make build-rpm