Skip to content

Commit

Permalink
ci: Independent frontend deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Clashsoft committed Oct 24, 2023
1 parent 5d2547a commit 5efab2c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,23 @@ jobs:
frontend:
name: Frontend
runs-on: ubuntu-latest
needs: [ deployment ]
defaults:
run:
working-directory: frontend
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Deployment Options
id: deployment
run: ./.github/workflows/deploy.sh
- name: Build the Docker Image
uses: whoan/docker-build-with-cache-action@v6
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ${{ secrets.DOCKER_REGISTRY }}
image_name: fulib/fulib.org-frontend
image_tag: ${{ needs.deployment.outputs.tag }}
image_tag: ${{ steps.deployment.outputs.tag }}
context: frontend/
- name: Deploy to Rancher
uses: sekassel-research/[email protected]
Expand All @@ -52,7 +54,7 @@ jobs:
project_id: ${{ secrets.RANCHER_PROJECT }}
namespace: ${{ secrets.NAMESPACE }}
deployment: fulib-frontend
docker_image: ${{ secrets.DOCKER_REGISTRY }}/fulib/fulib.org-frontend:${{ needs.deployment.outputs.tag }}
docker_image: ${{ secrets.DOCKER_REGISTRY }}/fulib/fulib.org-frontend:${{ steps.deployment.outputs.tag }}
backend:
name: Backend
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5efab2c

Please sign in to comment.