Skip to content

actions(deps): bump the actions-all group with 3 updates (#32) #61

actions(deps): bump the actions-all group with 3 updates (#32)

actions(deps): bump the actions-all group with 3 updates (#32) #61

Workflow file for this run

name: "Build & Publish Docker Image"
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
build:
name: "Build application"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
java-version: "25"
distribution: "corretto"
- run: ./gradlew check installDist
- name: Upload distribution artifact
uses: actions/upload-artifact@v7
with:
name: "install-dist"
path: "build/install/argo-workflows-mcp"
if-no-files-found: error
retention-days: 3
publish:
name: "Build & push image"
needs: build
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v6
- name: "Determine version"
id: version
run: echo "value=$(./version.sh)" >> "$GITHUB_OUTPUT"
- uses: actions/download-artifact@v8
with:
name: "install-dist"
path: "build/install/argo-workflows-mcp"
- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v4
- name: "Login to GHCR"
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Build and push image"
uses: docker/build-push-action@v7
with:
platforms: linux/amd64,linux/arm64
context: .
push: true
tags: |
ghcr.io/heapy/argo-workflows-mcp:main
ghcr.io/heapy/argo-workflows-mcp:${{ github.sha }}
ghcr.io/heapy/argo-workflows-mcp:${{ steps.version.outputs.value }}
labels: |
org.opencontainers.image.title=Argo Workflows MCP Server
org.opencontainers.image.description=MCP server for interacting with Argo Workflows clusters.
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
build-args: |
MCP_SERVER_VERSION=${{ steps.version.outputs.value }}