Skip to content

Commit

Permalink
test the CI - separate each steps for mor visibility on the builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Matlavv committed Nov 15, 2024
1 parent a00e5c1 commit 0229b83
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
jobs:
setup-docker:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -20,17 +21,17 @@ jobs:
uses: docker/setup-buildx-action@v2
with:
install: true
driver: docker-container

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

build-and-push-docker-api:
build-and-push-api:
runs-on: ubuntu-latest
needs: setup-docker

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -39,9 +40,10 @@ jobs:
run: |
docker buildx build --platform linux/amd64,linux/arm64 --push -t ${{ env.IMAGE_NAME }}:latest ./src/api
build-and-push-docker-job:
build-and-push-job:
runs-on: ubuntu-latest
needs: setup-docker

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -52,7 +54,8 @@ jobs:
setup-helm:
runs-on: ubuntu-latest
needs: build-and-push-docker-job
needs: [setup-docker, build-and-push-api, build-and-push-job]

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -62,9 +65,10 @@ jobs:
with:
version: v3.11.1

push-helm-chart:
package-and-push-helm:
runs-on: ubuntu-latest
needs: setup-helm

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -75,4 +79,5 @@ jobs:
- name: Push Helm chart to Docker Hub
run: |
helm push $(ls *.tgz) oci://registry-1.docker.io/amelieloulou
helm push $(ls *.tgz) oci://registry-1.docker.io/{{ env.IMAGE_NAME }}

0 comments on commit 0229b83

Please sign in to comment.