Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion .github/workflows/release-container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@ name: release-container-image

on:
push:
branches:
- master
tags:
- '[0-9]+.[0-9]+.[0-9]+*'
workflow_dispatch: # Manual Trigger
inputs:
docker_tag:
description: 'Docker tag to use'
required: true
default: 'dev'

jobs:
docker:
Expand All @@ -21,10 +28,22 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Get the tag
run: |
TAG=${{ github.ref_name }}
if [[ $TAG == "master" ]]; then
TAG=latest
fi
MANUAL_WORKFLOW_TAG=${{ inputs.docker_tag }}
if [[ $MANUAL_WORKFLOW_TAG != "" ]]; then
TAG=${{ inputs.docker_tag }}
fi
echo "Using tag $TAG"

- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: docker.io/datastax/pulsar-admin-console:${{ github.ref_name }}
tags: docker.io/datastax/pulsar-admin-console:$TAG