Просмотр исходного кода

Create docker-image-private.yml

Calcium-Ion 2 лет назад
Родитель
Сommit
cde0896e82
1 измененных файлов с 32 добавлено и 0 удалено
  1. 32 0
      .github/workflows/docker-image-private.yml

+ 32 - 0
.github/workflows/docker-image-private.yml

@@ -0,0 +1,32 @@
+name: Docker Image CI
+
+on:
+  push:
+    branches: [ "private" ]
+  pull_request:
+    branches: [ "private" ]
+
+jobs:
+
+  build:
+
+    runs-on: ubuntu-latest
+
+    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
+      uses: docker/[email protected]
+      with:
+          context: .
+          push: true
+          tags: ${{ steps.meta.outputs.tags }}
+          labels: ${{ steps.meta.outputs.labels }}