48
All checks were successful
Deploy Production / Deploy to Staging (push) Has been skipped

This commit is contained in:
Alex Shevchuk
2025-08-19 18:09:49 +03:00
parent c2df58c066
commit 0ad7185948
3 changed files with 117 additions and 135 deletions

View File

@@ -0,0 +1,23 @@
name: Get available versions
on:
workflow_dispatch:
jobs:
get_available_versions:
name: Get available versions
runs-on: ubuntu-22.04
outputs:
version_options: ${{ steps.get_versions.outputs.version_options }}
steps:
- name: Get available versions from Docker Registry
id: get_versions
env:
REGISTRY: hub.docker.com
REPO: ${{ github.repository }}
run: |
REPO_NAME=$(echo $REPO | cut -d'/' -f2)
TAGS=$(wget -q -O - "https://$REGISTRY/v2/namespaces/molvaapp/repositories/$REPO/tags?page_size=100" | jq -r '.results[].name')
echo "Available versions:\n$TAGS"