feat: add frontend nginx image and update build workflow for both images
This commit is contained in:
@@ -67,7 +67,7 @@ jobs:
|
||||
- name: Login to registry
|
||||
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login registry.lunarfront.tech -u ryan --password-stdin
|
||||
|
||||
- name: Build and push
|
||||
- name: Build and push backend
|
||||
run: |
|
||||
VERSION=${{ steps.version.outputs.version }}
|
||||
SHA=$(git rev-parse --short HEAD)
|
||||
@@ -76,11 +76,24 @@ jobs:
|
||||
-t registry.lunarfront.tech/ryan/lunarfront-app:$VERSION \
|
||||
-t registry.lunarfront.tech/ryan/lunarfront-app:$SHA \
|
||||
-t registry.lunarfront.tech/ryan/lunarfront-app:latest \
|
||||
.
|
||||
-f Dockerfile .
|
||||
docker push registry.lunarfront.tech/ryan/lunarfront-app:$VERSION
|
||||
docker push registry.lunarfront.tech/ryan/lunarfront-app:$SHA
|
||||
docker push registry.lunarfront.tech/ryan/lunarfront-app:latest
|
||||
|
||||
- name: Build and push frontend
|
||||
run: |
|
||||
VERSION=${{ steps.version.outputs.version }}
|
||||
SHA=$(git rev-parse --short HEAD)
|
||||
docker build \
|
||||
-t registry.lunarfront.tech/ryan/lunarfront-frontend:$VERSION \
|
||||
-t registry.lunarfront.tech/ryan/lunarfront-frontend:$SHA \
|
||||
-t registry.lunarfront.tech/ryan/lunarfront-frontend:latest \
|
||||
-f Dockerfile.frontend .
|
||||
docker push registry.lunarfront.tech/ryan/lunarfront-frontend:$VERSION
|
||||
docker push registry.lunarfront.tech/ryan/lunarfront-frontend:$SHA
|
||||
docker push registry.lunarfront.tech/ryan/lunarfront-frontend:latest
|
||||
|
||||
- name: Logout
|
||||
if: always()
|
||||
run: docker logout registry.lunarfront.tech
|
||||
|
||||
Reference in New Issue
Block a user