From 89e8c9c92fdc3b10f4f05d7d6eb63d1b660e8018 Mon Sep 17 00:00:00 2001
From: coco <49311792+k0rventen@users.noreply.github.com>
Date: Tue, 25 May 2021 17:40:09 +0200
Subject: [PATCH] add docker CI

---
 .github/workflows/docker.yml | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 .github/workflows/docker.yml

diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
new file mode 100644
index 0000000..38259dd
--- /dev/null
+++ b/.github/workflows/docker.yml
@@ -0,0 +1,27 @@
+name: example-docker-ci
+
+on:
+  push:
+    branches:
+      - 'master'
+
+jobs:
+  docker:
+    runs-on: ubuntu-latest
+    steps:
+      -
+        name: Login to DockerHub
+        uses: docker/login-action@v1 
+        with:
+          username: ${{ secrets.DOCKER_USER }}
+          password: ${{ secrets.DOCKER_TOKEN }}
+      -
+        name: Build and push
+        id: docker_build
+        uses: docker/build-push-action@v2
+        with:
+          push: true
+          tags: k0rventen/netbox-device-type-library-import:latest
+      -
+        name: Image digest
+        run: echo ${{ steps.docker_build.outputs.digest }}