Skip to content

Commit

Permalink
split in jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
akyriako committed Jul 11, 2024
1 parent 806b653 commit d17302a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
on:
push:
branches:
- main
- refine_workflow
# pull_request:
# branches:
# - main
jobs:
build:
build-app:
environment: preview
runs-on: ubuntu-latest

Expand All @@ -30,6 +30,12 @@ jobs:
TYPESENSE_API_KEY: ${{ secrets.TYPESENSE_API_KEY }}
run: npm run build

build-push-docker:
environment: preview
runs-on: ubuntu-latest
needs: build-app

steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand Down Expand Up @@ -58,8 +64,8 @@ jobs:
# - name: Image Digest
# run: echo ${{ steps.docker_build.outputs.digest }}

update-tag:
needs: build
update-helm-charts:
needs: [build-app, build-push-docker]
environment: preview
runs-on: ubuntu-latest
steps:
Expand All @@ -74,7 +80,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
REPO_NAME: 'docs-next-charts'
REPO_OWNER: 'akyriako'
FILE_PATH: 'docusaurus/values.yaml'
FILE_PATH: 'charts/docusaurus/values.yaml'
IMAGE_TAG: ${{ steps.commit_hash.outputs.short }}


Expand Down

0 comments on commit d17302a

Please sign in to comment.