|
@@ -144,7 +144,7 @@ jobs:
|
|
|
|
|
|
|
|
- name: Docker meta
|
|
- name: Docker meta
|
|
|
id: meta
|
|
id: meta
|
|
|
- uses: docker/metadata-action@v3
|
|
|
|
|
|
|
+ uses: docker/metadata-action@v4
|
|
|
with:
|
|
with:
|
|
|
images: weseek/growi,ghcr.io/weseek/growi
|
|
images: weseek/growi,ghcr.io/weseek/growi
|
|
|
flavor: |
|
|
flavor: |
|
|
@@ -155,22 +155,24 @@ jobs:
|
|
|
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}}
|
|
|
type=semver,value=${{ needs.create-github-release.outputs.RELEASED_VERSION }},pattern={{major}}.{{minor}}.{{patch}}
|
|
type=semver,value=${{ needs.create-github-release.outputs.RELEASED_VERSION }},pattern={{major}}.{{minor}}.{{patch}}
|
|
|
|
|
|
|
|
- - name: Login to docker.io registry
|
|
|
|
|
- run: |
|
|
|
|
|
- echo ${{ secrets. DOCKER_REGISTRY_PASSWORD }} | docker login --username wsmoogle --password-stdin
|
|
|
|
|
|
|
+ - name: Login to Docker Hub
|
|
|
|
|
+ uses: docker/login-action@v2
|
|
|
|
|
+ with:
|
|
|
|
|
+ username: wsmoogle
|
|
|
|
|
+ password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
|
|
|
|
|
|
|
|
- name: Login to GitHub Container Registry
|
|
- name: Login to GitHub Container Registry
|
|
|
- uses: docker/login-action@v1
|
|
|
|
|
|
|
+ uses: docker/login-action@v2
|
|
|
with:
|
|
with:
|
|
|
registry: ghcr.io
|
|
registry: ghcr.io
|
|
|
username: wsmoogle
|
|
username: wsmoogle
|
|
|
password: ${{ secrets.DOCKER_REGISTRY_ON_GITHUB_PASSWORD }}
|
|
password: ${{ secrets.DOCKER_REGISTRY_ON_GITHUB_PASSWORD }}
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
- name: Set up Docker Buildx
|
|
|
- uses: docker/setup-buildx-action@v1
|
|
|
|
|
|
|
+ uses: docker/setup-buildx-action@v2
|
|
|
|
|
|
|
|
- name: Build and push
|
|
- name: Build and push
|
|
|
- uses: docker/build-push-action@v2
|
|
|
|
|
|
|
+ uses: docker/build-push-action@v3
|
|
|
with:
|
|
with:
|
|
|
context: .
|
|
context: .
|
|
|
file: ./packages/app/docker/Dockerfile
|
|
file: ./packages/app/docker/Dockerfile
|
|
@@ -202,4 +204,3 @@ jobs:
|
|
|
run: |
|
|
run: |
|
|
|
STATUS=`git status --porcelain`
|
|
STATUS=`git status --porcelain`
|
|
|
if [ -z "$STATUS" ]; then exit 0; else exit 1; fi
|
|
if [ -z "$STATUS" ]; then exit 0; else exit 1; fi
|
|
|
-
|
|
|