Add ghcr docker hub build package for web ui
This commit is contained in:
17
.github/workflows/caprover.yml
vendored
17
.github/workflows/caprover.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Build & Deploy Managing API
|
name: Build & Deploy Managing API & Web UI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Preset Image Name
|
- name: Preset API Image Name
|
||||||
run: echo "IMAGE_URL=$(echo ghcr.io/cryptooda/managing-api:$(echo ${{ github.sha }} | cut -c1-7) | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
run: echo "IMAGE_URL=$(echo ghcr.io/cryptooda/managing-api:$(echo ${{ github.sha }} | cut -c1-7) | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build and push Docker Image
|
- name: Build and push Docker Image
|
||||||
@@ -37,6 +37,19 @@ jobs:
|
|||||||
${{ env.IMAGE_URL }}
|
${{ env.IMAGE_URL }}
|
||||||
ghcr.io/cryptooda/managing-api:latest
|
ghcr.io/cryptooda/managing-api:latest
|
||||||
|
|
||||||
|
- name: Preset Web UI Image Name
|
||||||
|
run: echo "WEBUI_IMAGE_URL=$(echo ghcr.io/cryptooda/managing-webui:$(echo ${{ github.sha }} | cut -c1-7) | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Build and push Web UI Docker Image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./src/Managing.WebApp/Dockerfile-web-ui-dev
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
${{ env.WEBUI_IMAGE_URL }}
|
||||||
|
ghcr.io/cryptooda/managing-webui:latest
|
||||||
|
|
||||||
# - name: Deploy Image to CapRover
|
# - name: Deploy Image to CapRover
|
||||||
# uses: caprover/deploy-from-github@v1.1.2
|
# uses: caprover/deploy-from-github@v1.1.2
|
||||||
# with:
|
# with:
|
||||||
|
|||||||
Reference in New Issue
Block a user