Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
andreev-io committed Jan 26, 2025
1 parent 32f511d commit a0210ac
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/kubenetmon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ jobs:
load: true

- name: Save image as artifact
run: docker save -o image.tar $(echo "${{ steps.meta.outputs.tags }}" | cut -d',' -f1)
run: |
first_tag=$(echo "${{ steps.meta.outputs.tags }}" | head -n 1)
docker save -o image.tar $first_tag
- name: Upload image artifact
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -119,15 +121,15 @@ jobs:

- name: Create required resources for test
run: |
first_tag=$(echo "${{ needs.build-docker-image.outputs.image-tags }}" | cut -d',' -f1)
first_tag=$(echo "${{ needs.build-docker-image.outputs.image-tags }}" | head -n 1)
kind load docker-image --name chart-testing $first_tag
kubectl create namespace kubenetmon-agent
kubectl create namespace kubenetmon-server
- name: Run chart-testing (install)
run: |
cd deploy/helm
first_tag=$(echo "${{ needs.build-docker-image.outputs.image-tags }}" | cut -d',' -f1)
first_tag=$(echo "${{ needs.build-docker-image.outputs.image-tags }}" | head -n 1)
repository=$(echo $first_tag | cut -d':' -f1)
tag=$(echo $first_tag | cut -d':' -f2)
Expand Down Expand Up @@ -188,7 +190,9 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push to GitHub Container Registry
run: docker push ${{ needs.build-docker-image.outputs.image-tags }}
run: |
first_tag=$(echo "${{ needs.build-docker-image.outputs.image-tags }}" | head -n 1)
docker push $first_tag
helm-publish:
name: Package and publish Helm charts
Expand Down

0 comments on commit a0210ac

Please sign in to comment.