|
@@ -126,29 +126,17 @@ jobs:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
- strategy:
|
|
|
|
|
- matrix:
|
|
|
|
|
- flavor: [default, nocdn]
|
|
|
|
|
-
|
|
|
|
|
steps:
|
|
steps:
|
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/checkout@v3
|
|
|
with:
|
|
with:
|
|
|
ref: v${{ needs.create-github-release.outputs.RELEASED_VERSION }}
|
|
ref: v${{ needs.create-github-release.outputs.RELEASED_VERSION }}
|
|
|
lfs: true
|
|
lfs: true
|
|
|
|
|
|
|
|
- - name: Setup suffix
|
|
|
|
|
- id: suffix
|
|
|
|
|
- run: |
|
|
|
|
|
- [[ ${{ matrix.flavor }} = "nocdn" ]] && suffix="-nocdn" || suffix=""
|
|
|
|
|
- echo "SUFFIX=$suffix" >> $GITHUB_OUTPUT
|
|
|
|
|
-
|
|
|
|
|
- name: Docker meta
|
|
- name: Docker meta
|
|
|
id: meta
|
|
id: meta
|
|
|
uses: docker/metadata-action@v4
|
|
uses: docker/metadata-action@v4
|
|
|
with:
|
|
with:
|
|
|
images: weseek/growi,ghcr.io/weseek/growi
|
|
images: weseek/growi,ghcr.io/weseek/growi
|
|
|
- flavor: |
|
|
|
|
|
- suffix=${{ steps.suffix.outputs.SUFFIX }}
|
|
|
|
|
tags: |
|
|
tags: |
|
|
|
type=raw,value=latest
|
|
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}}
|
|
@@ -178,8 +166,6 @@ jobs:
|
|
|
file: ./packages/app/docker/Dockerfile
|
|
file: ./packages/app/docker/Dockerfile
|
|
|
platforms: linux/amd64
|
|
platforms: linux/amd64
|
|
|
push: true
|
|
push: true
|
|
|
- build-args: |
|
|
|
|
|
- flavor=${{ matrix.flavor }}
|
|
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
cache-from: type=gha
|
|
cache-from: type=gha
|
|
|
cache-to: type=gha,mode=max
|
|
cache-to: type=gha,mode=max
|
|
@@ -198,7 +184,7 @@ jobs:
|
|
|
with:
|
|
with:
|
|
|
channel: '#release'
|
|
channel: '#release'
|
|
|
url: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
url: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
|
- created_tag: 'v${{ needs.create-github-release.outputs.RELEASED_VERSION }}${{ steps.suffix.outputs.SUFFIX }}'
|
|
|
|
|
|
|
+ created_tag: 'v${{ needs.create-github-release.outputs.RELEASED_VERSION }}'
|
|
|
|
|
|
|
|
- name: Check whether workspace is clean
|
|
- name: Check whether workspace is clean
|
|
|
run: |
|
|
run: |
|