Skip to content

Commit

Permalink
Add automated docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
hvxl committed Dec 9, 2023
1 parent d97347f commit 4700c3a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
- name: Install tclkit
run: |
echo ${{vars.TESTVAR}}
sudo cp tclkit-x64 /usr/local/bin/tclkit
sudo chmod +x /usr/local/bin/tclkit
Expand Down Expand Up @@ -86,3 +85,21 @@ jobs:
with:
name: Windows binary
path: otmonitor.exe

- name: Debug
run: |
pwd
ls -l
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: hvxl/otmonitor:dev
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM cgr.dev/chainguard/wolfi-base

RUN mkdir /app /data
COPY ./otmonitor-x64 /app/otmonitor

CMD ["/app/otmonitor", "--daemon", "-w8080", "-f/data/otmonitor.conf"]

0 comments on commit 4700c3a

Please sign in to comment.