|
|
@@ -1,4 +1,3 @@
|
|
|
-# TODO: https://redmine.weseek.co.jp/issues/171293
|
|
|
name: Release
|
|
|
|
|
|
on:
|
|
|
@@ -81,8 +80,7 @@ jobs:
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
outputs:
|
|
|
- TAGS_WESEEK: ${{ steps.meta-weseek.outputs.tags }}
|
|
|
- TAGS_GROWILABS: ${{ steps.meta-growilabs.outputs.tags }}
|
|
|
+ TAGS: ${{ steps.meta.outputs.tags }}
|
|
|
|
|
|
steps:
|
|
|
- uses: actions/checkout@v4
|
|
|
@@ -91,21 +89,9 @@ jobs:
|
|
|
uses: myrotvorets/info-from-package-json-action@v2.0.2
|
|
|
id: package-json
|
|
|
|
|
|
- - name: Docker meta for weseek/growi
|
|
|
+ - name: Docker meta for docker.io
|
|
|
uses: docker/metadata-action@v5
|
|
|
- id: meta-weseek
|
|
|
- with:
|
|
|
- images: docker.io/weseek/growi
|
|
|
- sep-tags: ','
|
|
|
- tags: |
|
|
|
- type=raw,value=latest
|
|
|
- type=semver,value=${{ needs.create-github-release.outputs.RELEASED_VERSION }},pattern={{major}}
|
|
|
- type=semver,value=${{ needs.create-github-release.outputs.RELEASED_VERSION }},pattern={{major}}.{{minor}}
|
|
|
- type=semver,value=${{ needs.create-github-release.outputs.RELEASED_VERSION }},pattern={{major}}.{{minor}}.{{patch}}
|
|
|
-
|
|
|
- - name: Docker meta for growilabs/growi
|
|
|
- uses: docker/metadata-action@v5
|
|
|
- id: meta-growilabs
|
|
|
+ id: meta
|
|
|
with:
|
|
|
images: docker.io/growilabs/growi
|
|
|
sep-tags: ','
|
|
|
@@ -126,12 +112,12 @@ jobs:
|
|
|
secrets:
|
|
|
AWS_ROLE_TO_ASSUME_FOR_OIDC: ${{ secrets.AWS_ROLE_TO_ASSUME_FOR_OIDC }}
|
|
|
|
|
|
- publish-app-image-for-growilabs:
|
|
|
+ publish-app-image:
|
|
|
needs: [determine-tags, build-app-image]
|
|
|
|
|
|
uses: growilabs/growi/.github/workflows/reusable-app-create-manifests.yml@master
|
|
|
with:
|
|
|
- tags: ${{ needs.determine-tags.outputs.TAGS_GROWILABS }}
|
|
|
+ tags: ${{ needs.determine-tags.outputs.TAGS }}
|
|
|
registry: docker.io
|
|
|
image-name: 'growilabs/growi'
|
|
|
docker-registry-username: 'growimoogle'
|
|
|
@@ -139,42 +125,21 @@ jobs:
|
|
|
secrets:
|
|
|
DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD_GROWIMOOGLE }}
|
|
|
|
|
|
- publish-app-image-for-weseek:
|
|
|
- needs: [determine-tags, build-app-image]
|
|
|
-
|
|
|
- uses: growilabs/growi/.github/workflows/reusable-app-create-manifests.yml@master
|
|
|
- with:
|
|
|
- tags: ${{ needs.determine-tags.outputs.TAGS_WESEEK }}
|
|
|
- registry: docker.io
|
|
|
- image-name: 'growilabs/growi'
|
|
|
- docker-registry-username: 'wsmoogle'
|
|
|
- tag-temporary: latest
|
|
|
- secrets:
|
|
|
- DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
|
|
|
-
|
|
|
post-publish:
|
|
|
- needs: [create-github-release, publish-app-image-for-growilabs, publish-app-image-for-weseek]
|
|
|
+ needs: [create-github-release, publish-app-image]
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
- strategy:
|
|
|
- matrix:
|
|
|
- include:
|
|
|
- - repository: weseek/growi
|
|
|
- username: wsmoogle
|
|
|
- - repository: growilabs/growi
|
|
|
- username: growimoogle
|
|
|
-
|
|
|
steps:
|
|
|
- uses: actions/checkout@v4
|
|
|
with:
|
|
|
ref: v${{ needs.create-github-release.outputs.RELEASED_VERSION }}
|
|
|
|
|
|
- name: Update Docker Hub Description
|
|
|
- uses: peter-evans/dockerhub-description@v4
|
|
|
+ uses: peter-evans/dockerhub-description@v3
|
|
|
with:
|
|
|
- username: ${{ matrix.username }}
|
|
|
- password: ${{ (matrix.repository == 'weseek/growi' && secrets.DOCKER_REGISTRY_PASSWORD) || (matrix.repository == 'growilabs/growi' && secrets.DOCKER_REGISTRY_PASSWORD_GROWIMOOGLE) || 'INVALID_SECRET' }}
|
|
|
- repository: ${{ matrix.repository }}
|
|
|
+ username: growimoogle
|
|
|
+ password: ${{ secrets.DOCKER_REGISTRY_PASSWORD_GROWIMOOGLE }}
|
|
|
+ repository: growilabs/growi
|
|
|
readme-filepath: ./apps/app/docker/README.md
|
|
|
|
|
|
- name: Slack Notification
|
|
|
@@ -186,7 +151,7 @@ jobs:
|
|
|
|
|
|
|
|
|
create-pr-for-next-rc:
|
|
|
- needs: [create-github-release, publish-app-image-for-growilabs, publish-app-image-for-weseek]
|
|
|
+ needs: [create-github-release, publish-app-image]
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
steps:
|