Browse Source

Merge remote-tracking branch 'origin/main'

CaIon 2 years ago
parent
commit
719b82ad49
1 changed files with 15 additions and 1 deletions
  1. 15 1
      .github/workflows/docker-image.yml

+ 15 - 1
.github/workflows/docker-image.yml

@@ -14,5 +14,19 @@ jobs:
 
     steps:
     - uses: actions/checkout@v3
+    - uses: docker/[email protected]
+      with:
+        username: ${{ secrets.DOCKERHUB_USERNAME }}
+        password: ${{ secrets.DOCKERHUB_TOKEN }}
+    - name: Extract metadata (tags, labels) for Docker
+      id: meta
+      uses: docker/metadata-action@v3
+      with:
+        images: calciumion/neko-api
     - name: Build the Docker image
-      run: docker build . --file Dockerfile --tag calciumion/neko-api:$(date +%s)
+      uses: docker/[email protected]
+      with:
+          context: .
+          push: true
+          tags: ${{ steps.meta.outputs.tags }}
+          labels: ${{ steps.meta.outputs.labels }}