feat: added build for gotrue image
This commit is contained in:
parent
04270eb2bf
commit
6dedb80ec0
|
|
@ -18,6 +18,20 @@ env:
|
||||||
LATEST_TAG: latest
|
LATEST_TAG: latest
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
gotrue_image:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Check out the repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Build and Push GoTrue
|
||||||
|
run: |
|
||||||
|
docker compose build gotrue
|
||||||
|
docker tag appflowy-cloud-gotrue appflowyinc/gotrue:${{ env.GIT_TAG }}
|
||||||
|
echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login --username appflowyinc --password-stdin
|
||||||
|
docker push appflowyinc/gotrue:${{ env.GIT_TAG }}
|
||||||
|
docker push appflowyinc/gotrue:latest
|
||||||
|
|
||||||
appflowy_cloud_image:
|
appflowy_cloud_image:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
env:
|
env:
|
||||||
|
|
@ -49,7 +63,7 @@ jobs:
|
||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
T=${GITHUB_REF#refs/*/} # Remove "refs/*/" prefix from GITHUB_REF
|
T=${GITHUB_REF#refs/*/} # Remove "refs/*/" prefix from GITHUB_REF
|
||||||
echo "GIT_TAG=$T" >> $GITHUB_ENV
|
echo "GIT_TAG=$T" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Extract metadata
|
- name: Extract metadata
|
||||||
id: meta
|
id: meta
|
||||||
|
|
@ -92,7 +106,7 @@ jobs:
|
||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
T=${GITHUB_REF#refs/*/} # Remove "refs/*/" prefix from GITHUB_REF
|
T=${GITHUB_REF#refs/*/} # Remove "refs/*/" prefix from GITHUB_REF
|
||||||
echo "GIT_TAG=$T" >> $GITHUB_ENV
|
echo "GIT_TAG=$T" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Create and push manifest for ${{ matrix.job.image_name }}:version
|
- name: Create and push manifest for ${{ matrix.job.image_name }}:version
|
||||||
uses: Noelware/docker-manifest-action@master
|
uses: Noelware/docker-manifest-action@master
|
||||||
|
|
@ -143,7 +157,7 @@ jobs:
|
||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
T=${GITHUB_REF#refs/*/} # Remove "refs/*/" prefix from GITHUB_REF
|
T=${GITHUB_REF#refs/*/} # Remove "refs/*/" prefix from GITHUB_REF
|
||||||
echo "GIT_TAG=$T" >> $GITHUB_ENV
|
echo "GIT_TAG=$T" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Extract metadata
|
- name: Extract metadata
|
||||||
id: meta
|
id: meta
|
||||||
|
|
@ -187,7 +201,7 @@ jobs:
|
||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
T=${GITHUB_REF#refs/*/} # Remove "refs/*/" prefix from GITHUB_REF
|
T=${GITHUB_REF#refs/*/} # Remove "refs/*/" prefix from GITHUB_REF
|
||||||
echo "GIT_TAG=$T" >> $GITHUB_ENV
|
echo "GIT_TAG=$T" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Create and push manifest for ${{ matrix.job.image_name }}:version
|
- name: Create and push manifest for ${{ matrix.job.image_name }}:version
|
||||||
uses: Noelware/docker-manifest-action@master
|
uses: Noelware/docker-manifest-action@master
|
||||||
|
|
@ -205,4 +219,4 @@ jobs:
|
||||||
|
|
||||||
- name: Logout from Docker Hub
|
- name: Logout from Docker Hub
|
||||||
if: always()
|
if: always()
|
||||||
run: docker logout
|
run: docker logout
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue