Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add .deb .rpm builds in containers, update package script #369

Merged
merged 4 commits into from
Jan 29, 2024

Conversation

xseman
Copy link
Contributor

@xseman xseman commented Dec 25, 2023

#213

Pridal som build artifactov v Debian a Fedora kontajneroch, mám pocit že je to najjednoduchšie riešenie ako sa vyhnúť špeciálnym rozdielom v defaultoch distribúcií s jpackage a rpm.

Zatiaľ som neriešil cache alebo nejakú špecialnu optimalizáciu CI zbytočnou abstrakciou, build je relatívne rýchli a release sa nerobí tak často.

Refaktorol som package script aby bol konzistentnejší a pridal štandardnejšiu detekciu distribucie.

@xseman xseman requested a review from a team as a code owner December 25, 2023 09:00
src/main/scripts/package.sh Outdated Show resolved Hide resolved
- name: Build artifact
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
./mvnw versions:set -DnewVersion=$(git describe --tags --abbrev=0 | sed -r 's/^v//g')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tuto som vždy dostával v1.0.0, no myslím že to bolo kôli tomu, že fork nemá žiadne pushnute tagy

@jsuchal
Copy link
Member

jsuchal commented Jan 29, 2024

@celuchmarek vies si toto zobrat?

Copy link
Member

@celuchmarek celuchmarek left a comment

Choose a reason for hiding this comment

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

Vyzerá to dobre. Upracem už rovno aj mac a windows do osobitných jobov v tej github action.

@celuchmarek celuchmarek merged commit ad60f48 into slovensko-digital:main Jan 29, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants