Skip to content

Commit

Permalink
Merge pull request #24 from CptOfEvilMinions/build_debs-2
Browse files Browse the repository at this point in the history
PoC for building DEBs -2
  • Loading branch information
CptOfEvilMinions authored May 4, 2022
2 parents a5d9025 + 3461050 commit ffc5811
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test_main_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
########################### Build DEB packages ###########################
- name: Build and deploy osctrl Docker containers
- name: Build osctrl DEB packages
uses: ./.github/actions/build/dpkg
with:
go_os: ${{ matrix.goos }}
Expand Down
4 changes: 3 additions & 1 deletion deploy/cicd/deb/generate-deb-package.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -e

OSCTRL_USER="${VARIABLE:-osctrl}"
OSCTRL_GROUP="${VARIABLE:-osctrl}"
WORKING_DIR="${VARIABLE:-/etc/osctrl}"
Expand Down Expand Up @@ -37,7 +39,7 @@ cp deploy/config/redis.json "${DEB_DIR}/usr/share/osctrl/redis.json.example" &&
###################################### General components content ######################################
mkdir -p "${DEB_DIR}/etc/osctrl/osctrl-${OSCTRL_COMPONTENT}" && \

cp osctrl-${OSCTRL_COMPONTENT}-${COMMIT_SHA}-${GOOS}-${GOARCH}.bin "${DEB_DIR}/usr/local/bin/osctrl-${OSCTRL_COMPONTENT}" && \
cp osctrl-${OSCTRL_COMPONTENT}-${GOOS}-${GOARCH}.bin "${DEB_DIR}/usr/local/bin/osctrl-${OSCTRL_COMPONTENT}" && \
chmod 755 "${DEB_DIR}/usr/local/bin/osctrl-${OSCTRL_COMPONTENT}"

cp deploy/config/service.json "${DEB_DIR}/etc/osctrl/osctrl-${OSCTRL_COMPONTENT}/service.json" && \
Expand Down

0 comments on commit ffc5811

Please sign in to comment.