Skip to content

Commit

Permalink
Docker Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
duygupotur authored Jan 26, 2024
1 parent 213729c commit 065fa5f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Get latest release of inventory-wmi
uses: i3h/download-release-asset@v1
with:
owner: "limanmys"
repo: "inventory-wmi"
tag: "latest"
file: "wmi.zip"
path: "./"
token: ${{ secrets.TOKEN }}

- name: Unzip Dependencies
run: |
sudo apt install unzip
unzip wmi.zip
rm *.zip
- name: Get version details
run: |
echo "RELEASE_RUNNUMBER=$(($GITHUB_RUN_NUMBER+6))" >> $GITHUB_ENV
Expand Down
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ RUN GOOS=linux CGO_ENABLED=1 go build -ldflags="-s -w" -o /opt/build/inventory-s

RUN mkdir reports

RUN mkdir wmi

COPY ./wmi.so ./wmi

COPY scripts/start.sh /tmp/start.sh

RUN sed -e 's/$/ -type=test/' /tmp/start.sh
RUN echo -n " -type=test" >> /tmp/start.sh

RUN ["chmod", "755", "/tmp/start.sh"]

Expand Down

0 comments on commit 065fa5f

Please sign in to comment.