Skip to content

Commit

Permalink
feat: unify build steps and package architecture for all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
rauno56 committed Jun 25, 2024
1 parent 2fa77c5 commit 233c07c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ jobs:
run: |
docker buildx build --load --platform=linux/${{ matrix.arch }} -t ${{ matrix.service }} .
docker create --name tc ${{ matrix.service }}
docker cp $(docker create --name tc frontend):/app ./dist && docker rm tc
mkdir -p ./dist/app
docker cp tc:/app ./dist
docker rm tc
sed -i -E 's/version: .*$/version: '"${TAG}"'/' nfpm.yaml
sed -i -E 's/arch: .*$/arch: '"${{ matrix.pkg_arch }}"'/' nfpm.yaml
nfpm pkg --packager rpm --target dist/
Expand Down
2 changes: 1 addition & 1 deletion frontend/distribution/systemd.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Description=Odigos Demo Frontend Service
After=network.target

[Service]
ExecStart=java -jar /usr/share/java/odigos-demo-frontend.jar
ExecStart=java -jar /opt/odigos-demo-frontend/app/odigos-demo-frontend.jar
KillMode=mixed
Restart=on-failure
RestartSec=1s
Expand Down
4 changes: 2 additions & 2 deletions frontend/nfpm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ homepage: https://odigos.io
contents:
- src: distribution/systemd.service
dst: /lib/systemd/system/odigos-demo-frontend.service
- src: ./dist/frontend.jar
dst: /usr/share/java/odigos-demo-frontend.jar
- src: ./dist/app
dst: /opt/odigos-demo-frontend
scripts:
preinstall: ./distribution/preinstall.sh
postinstall: ./distribution/postinstall.sh
Expand Down

0 comments on commit 233c07c

Please sign in to comment.