From 5efab2cba56ff09d5a55b6f80fb5cf32b16292c7 Mon Sep 17 00:00:00 2001 From: Adrian Kunz Date: Tue, 24 Oct 2023 16:03:40 +0200 Subject: [PATCH] ci: Independent frontend deployment --- .github/workflows/deploy.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8eafa9cb2..474a013ab 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,13 +27,15 @@ 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: @@ -41,7 +43,7 @@ jobs: 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/actions-rancher-update@2.0.2 @@ -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