Browse Source

feat: add docker image build

Indexyz 5 years ago
parent
commit
87317b7995
2 changed files with 35 additions and 0 deletions
  1. 9 0
      .editorconfig
  2. 26 0
      .github/workflows/continuous-integration.yml

+ 9 - 0
.editorconfig

@@ -0,0 +1,9 @@
+[*]
+end_of_line = lf
+indent_style = space
+insert_final_newline = true
+trim_trailing_whitespace = true
+charset = utf-8
+
+[*.{yml,yaml}]
+indent_size = 2

+ 26 - 0
.github/workflows/continuous-integration.yml

@@ -0,0 +1,26 @@
+name: CI
+on:
+  push:
+    branches:
+      - master
+
+jobs:
+  build:
+    name: Docker
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v1
+
+    - name: Login to docker hub
+      uses: actions-hub/docker/login@master
+      env:
+        DOCKER_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
+        DOCKER_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
+
+    - name: Build :latest
+      run: docker build -t sspaneluim/panel .
+
+    - name: Push to docker hub :latest
+      uses: actions-hub/docker@master
+      with:
+        args: push sspaneluim/panel:latest