Skip to content

Commit

Permalink
Add logic that chooses only version from <collector_type>/<version> (#83
Browse files Browse the repository at this point in the history
)

Co-authored-by: Valerii Mironchenko <[email protected]>
  • Loading branch information
ValeriyWorld and Valerii Mironchenko authored Jun 26, 2024
1 parent cf910f0 commit 2a13453
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release-collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,17 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Extract tag part after "/"
id: tag
run: |
TAG_FULL=${{ steps.meta.outputs.tags }}
TAG_VERSION=$(echo $TAG_FULL | sed 's|.*/||')
echo "TAG_VERSION=TAG_VERSION" >> $GITHUB_ENV
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./${{ inputs.collector-name }}
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: ${{ env.TAG_VERSION }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 2a13453

Please sign in to comment.