Skip to content

Commit

Permalink
update CI with latest version - test without latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Matlavv committed Dec 3, 2024
1 parent 73af03c commit ff329c9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ jobs:
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-${new_version} --cache-from=type=local,src=/tmp/.buildx-cache --cache-to=type=local,dest=/tmp/.buildx-cache,mode=max ./src/api
docker tag ${{ env.IMAGE_NAME }}:api-${new_version} ${{ env.IMAGE_NAME }}:api-latest
docker push ${{ env.IMAGE_NAME }}:api-latest
build-and-push-docker-job:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -170,8 +168,6 @@ jobs:
run: |
new_version=${{ needs.determine-version.outputs.new_version }}
docker buildx build --platform linux/amd64,linux/arm64 --push -t ${{ env.IMAGE_NAME }}:job-${new_version} --cache-from=type=local,src=/tmp/.buildx-cache --cache-to=type=local,dest=/tmp/.buildx-cache,mode=max ./src
docker tag ${{ env.IMAGE_NAME }}:job-${new_version} ${{ env.IMAGE_NAME }}:job-latest
docker push ${{ env.IMAGE_NAME }}:job-latest
publish-helm-chart:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -201,9 +197,7 @@ jobs:
- name: Package Helm chart
run: |
helm package opensource --version "${{ needs.determine-version.outputs.new_version }}"
helm package opensource --version "latest"
- name: Push Helm chart to Docker Hub
run: |
helm push $(ls *${{ needs.determine-version.outputs.new_version }}*.tgz) oci://registry-1.docker.io/bouyguestelecomcharts
helm push $(ls *latest*.tgz) oci://registry-1.docker.io/bouyguestelecomcharts
helm push $(ls *.tgz) oci://registry-1.docker.io/bouyguestelecomcharts

0 comments on commit ff329c9

Please sign in to comment.