diff --git a/.github/workflows/release_app.yml b/.github/workflows/release_app.yml index 0e6270e..87995cb 100644 --- a/.github/workflows/release_app.yml +++ b/.github/workflows/release_app.yml @@ -36,14 +36,18 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Parse tag - id: tag - run: | - echo "version=$(echo ${GITHUB_REF_NAME#release/*})" >> $GITHUB_OUTPUT + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5.5.1 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=match,pattern=\d.\d.\d - name: Build and push Docker image uses: docker/build-push-action@v5.3.0 with: context: . push: true - tags: ${{ steps.tag.outputs.version }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }}