chore(converter): filter calls to metrics & health #33
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build converter image | |
| on: | |
| push: | |
| tags: | |
| - 'converter-*' | |
| workflow_dispatch: | |
| jobs: | |
| build-converter: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Extract version from tag | |
| id: extract-version | |
| run: | | |
| TAG_NAME="${{ github.ref_name }}" | |
| VERSION=${TAG_NAME#converter-} | |
| PATTERN="^[0-9]+\.[0-9]+\.[0-9]+(-rc\.[0-9]+)*$" | |
| if [[ ! "$VERSION" =~ $PATTERN ]]; then | |
| echo "Invalid version number. Expected format: x.y.z with optional '-rc.n' (e.g., 1.2.3 or 1.2.3-rc.1)" | |
| echo $VERSION | |
| exit 1 | |
| fi | |
| echo "version=$VERSION" >> $GITHUB_OUTPUT | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to Docker Hardened Images | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: dhi.io | |
| username: ${{ secrets.DHI_USERNAME }} | |
| password: ${{ secrets.DHI_PASSWORD }} | |
| - name: Login to Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push converter service Docker image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| push: true | |
| platforms: linux/amd64 | |
| tags: ghcr.io/${{ github.repository_owner }}/hub-converter:${{ steps.extract-version.outputs.version }} | |
| context: ./converter | |
| build-args: CONVERTER_VERSION=${{ steps.extract-version.outputs.version }} |