Browse Source

test action

Markos Gogoulos 2 years ago
parent
commit
c1b75d45a8
2 changed files with 18 additions and 0 deletions
  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:
     paths-ignore:
       - '**/README.md'
       - '**/README.md'
 jobs:
 jobs:
+  test-login:
+    uses: ./.github/workflows/login.yml
   pre-commit:
   pre-commit:
     uses: ./.github/workflows/pre-commit.yml
     uses: ./.github/workflows/pre-commit.yml
   test:
   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 }}