Explorar el Código

WIP: update build.yml

Yuki Takei hace 6 años
padre
commit
26fb88a2a2
Se han modificado 2 ficheros con 42 adiciones y 4 borrados
  1. 35 0
      .github/workflows/build-rc.yml
  2. 7 4
      .github/workflows/build.yml

+ 35 - 0
.github/workflows/build-rc.yml

@@ -0,0 +1,35 @@
+name: Release Docker Images for RC
+
+on:
+  push:
+    branches:
+      - rc/*
+
+jobs:
+
+  build-rc:
+
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v1
+
+    - name: Set up Docker Buildx
+      uses: crazy-max/ghaction-docker-buildx@v1.0.4
+
+    - name: Build Docker Image
+      run: |
+        docker buildx build \
+          --tag growi
+          --platform linux/amd64 \
+          --output "type=image,push=false" \
+          --file ./docker/Dockerfile .
+
+    - name: Login to docker.io registry
+      run: |
+        docker login --username wsmoogle --password ${{ secrets. DOCKER_REGISTRY_PASSWORD }}
+
+    - name: Publish
+      run: |
+        docker tag growi weseek/growi:latest
+        docker publish weseek/growi:latest

+ 7 - 4
.github/workflows/build.yml

@@ -2,8 +2,6 @@ name: Release Docker Images
 
 
 on:
 on:
   push:
   push:
-  branches:
-      - rc/*
     tags:
     tags:
       - v3.*
       - v3.*
 
 
@@ -63,5 +61,10 @@ jobs:
     steps:
     steps:
     - uses: actions/checkout@v1
     - uses: actions/checkout@v1
 
 
-    - name: Bump version
-      run: sh ./bin/github-actions/bump-version.sh
+    - name: Update Docker Hub Description
+      uses: peter-evans/dockerhub-description@v2.1.0
+      env:
+        DOCKERHUB_USERNAME: wsmoogle
+        DOCKERHUB_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
+        DOCKERHUB_REPOSITORY: weseek/growi
+        README_FILEPATH: ./docker/README.md