Skip to content

v2.0.22

v2.0.22 #40

Workflow file for this run

name: Docker Publish
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: 'Docker image tag (e.g., v2.0.19 or latest)'
required: true
default: 'latest'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata for Docker (Release)
if: github.event_name == 'release'
id: meta-release
uses: docker/metadata-action@v5
with:
images: zereight050/gitlab-mcp
tags: |
type=semver,pattern={{version}}
latest
- name: Set tags for manual dispatch
if: github.event_name == 'workflow_dispatch'
id: meta-manual
run: |
echo "tags=zereight050/gitlab-mcp:${{ github.event.inputs.tag }}" >> $GITHUB_OUTPUT
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ github.event_name == 'release' && steps.meta-release.outputs.tags || steps.meta-manual.outputs.tags }}