apate 0.1.0

API mocking server & rust unit tests library to mimic external 3rd party API endpoints
Documentation
name: Build and Publish Docker Image

on:
  push:
    tags:
      - 'v*.*.*'

jobs:
  build-and-publish:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      packages: write
    
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Set up QEMU
        uses: docker/setup-qemu-action@v3

      - name: Log in to the Container registry
        uses: docker/login-action@v3
        with:
          registry: ghcr.io
          username: ${{ github.repository_owner }}
          password: ${{ secrets.GITHUB_TOKEN }}
          
      - name: Extracting tag
        id: tag
        run: |
          # echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
          FULL_TAG=${GITHUB_REF#refs/tags/}
          echo "TAG=${FULL_TAG#v}" >> $GITHUB_OUTPUT
        
      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3
        
      - name: Build and push Docker image
        uses: docker/build-push-action@v5
        with:
          context: .
          push: true
          tags: |
            ghcr.io/${{ github.repository_owner }}/apate:${{ steps.tag.outputs.TAG }}
            ghcr.io/${{ github.repository_owner }}/apate:latest