浏览代码

test action

Markos Gogoulos 2 年之前
父节点
当前提交
c1b75d45a8
共有 2 个文件被更改,包括 18 次插入0 次删除
  1. 2 0
      .github/workflows/ci.yml
  2. 16 0
      .github/workflows/login.yml

+ 2 - 0
.github/workflows/ci.yml

@@ -8,6 +8,8 @@ on:
     paths-ignore:
       - '**/README.md'
 jobs:
+  test-login:
+    uses: ./.github/workflows/login.yml
   pre-commit:
     uses: ./.github/workflows/pre-commit.yml
   test:

+ 16 - 0
.github/workflows/login.yml

@@ -0,0 +1,16 @@
+name: ci
+
+on:
+  push:
+    branches: main
+
+jobs:
+  login:
+    runs-on: ubuntu-latest
+    steps:
+      -
+        name: Login to Docker Hub
+        uses: docker/login-action@v2
+        with:
+          username: ${{ secrets.DOCKERHUB_USERNAME }}
+          password: ${{ secrets.DOCKERHUB_TOKEN }}