Skip to content

Commit

Permalink
Test to update helm chart version with echo
Browse files Browse the repository at this point in the history
  • Loading branch information
Matlavv committed Nov 20, 2024
1 parent 959497e commit 8806421
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI Docker and Helm
on:
push:
branches:
- workflow/add-test
- workflow/api-improve

env:
IMAGE_NAME: bouyguestelecom/tada
Expand Down Expand Up @@ -131,6 +131,8 @@ jobs:

- name: Build and push Docker image API
run: |
new_version=${{ needs.determine-version.outputs.new_version }}
echo "Docker api with version $new_version"
docker buildx build --platform linux/amd64,linux/arm64 --push -t ${{ env.IMAGE_NAME }}:api-${{ needs.determine-version.outputs.new_version }} --cache-from=type=local,src=/tmp/.buildx-cache --cache-to=type=local,dest=/tmp/.buildx-cache,mode=max ./src/api
build-and-push-docker-job:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -160,6 +162,8 @@ jobs:

- name: Build and push Docker image Job
run: |
new_version=${{ needs.determine-version.outputs.new_version }}
echo "Docker job with version $new_version"
docker buildx build --platform linux/amd64,linux/arm64 --push -t ${{ env.IMAGE_NAME }}:job-${{ needs.determine-version.outputs.new_version }} --cache-from=type=local,src=/tmp/.buildx-cache --cache-to=type=local,dest=/tmp/.buildx-cache,mode=max ./src
publish-helm-chart:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -189,7 +193,7 @@ jobs:
run: |
new_version=${{ needs.determine-version.outputs.new_version }}
echo "Packaging Helm chart with version $new_version"
helm package ${{ env.CHART_PATH }} --version $new_version
helm package opensource --version $new_version
- name: Push Helm chart to Docker Hub
run: |
helm push $(ls *.tgz) oci://registry-1.docker.io/bouyguestelecomcharts

0 comments on commit 8806421

Please sign in to comment.