Browse Source

Update build.yml

崔庆才丨静觅 3 years ago
parent
commit
9c78753f2e
1 changed files with 6 additions and 1 deletions
  1. 6 1
      .github/workflows/build.yml

+ 6 - 1
.github/workflows/build.yml

@@ -28,7 +28,11 @@ jobs:
         with:
           username: germey
           password: ${{ secrets.DOCKERHUB_LOGIN_PASSWORD }}
-
+      
+      - name: Get current date
+        id: date
+        run: echo "::set-output name=date::$(date +'%Y%m%d')"
+      
       - name: Build and push
         uses: docker/build-push-action@v2
         with:
@@ -38,3 +42,4 @@ jobs:
           tags: |
             germey/proxypool:latest
             germey/proxypool:master
+            germey/proxypool:${{ steps.date.outputs.date }}