summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesper Jensen <DelusionalLogic@users.noreply.github.com>2025-04-12 15:19:47 +0200
committerGitHub <noreply@github.com>2025-04-12 15:19:47 +0200
commit6fdabfdf0865f0516eaac469f0febd25daae01ae (patch)
treed316acf1e25b410d25291a8a5fbe83e8b2988f16
parent094343162360e97cb2e190d0dcd293038568b39e (diff)
Add docker image github action
-rw-r--r--.github/workflows/docker-image.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml
new file mode 100644
index 0000000..2a4ade3
--- /dev/null
+++ b/.github/workflows/docker-image.yml
@@ -0,0 +1,22 @@
+name: Docker Image CI
+
+on:
+ push:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Build the Docker image
+ run: docker build . --file Dockerfile --tag ghcr.io/delusionallogic/dht:${{ github.run_number }}
+
+ - name: Tag as latest
+ run: docker tag ghcr.io/delusionallogic/dht:${{ github.run_number }} ghcr.io/delusionallogic/dht:latest
+
+ - name: Push the image
+ run: >
+ docker push ghcr.io/delusionallogic/dht:${{ github.run_number }}
+ docker push ghcr.io/delusionallogic/dht:latest