This commit is contained in:
@@ -34,14 +34,10 @@ jobs:
|
||||
- name: Get available versions from Docker Registry
|
||||
id: get_versions
|
||||
env:
|
||||
REGISTRY: docker.io
|
||||
REGISTRY: hub.docker.com
|
||||
REPO: test-deploy
|
||||
run: |
|
||||
TOKEN=$(curl -s -u "${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }}" \
|
||||
"https://$REGISTRY/v2/token?service=$REGISTRY&scope=repository:$REPO:pull" | jq -r .token)
|
||||
|
||||
TAGS=$(curl -s -H "Authorization: Bearer $TOKEN" \
|
||||
"https://$REGISTRY/v2/$REPO/tags/list" | jq -r '.tags[] | select(. != "latest")' | sort -rV | head -10 | tr '\n' ',')
|
||||
TAGS=$(wget -q -O - "https://$REGISTRY/v2/namespaces/molvaapp/repositories/$REPO/tags?page_size=100" | jq -r '.results[].name' | tr '\n' ',')
|
||||
|
||||
echo "version_options=latest,${TAGS%,}" >> $GITHUB_OUTPUT
|
||||
|
||||
|
@@ -37,6 +37,8 @@ services:
|
||||
- /opt/molva/object_storage/config:/root/.aws/config:ro
|
||||
networks:
|
||||
- molva
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl", "-f", "localhost:8000/api/v1/healthcheck"]
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
|
Reference in New Issue
Block a user