Reduced redundancy in docker setup
Some checks failed
Test Deploy to OCI Registry / deploy (push) Failing after 1m8s
Some checks failed
Test Deploy to OCI Registry / deploy (push) Failing after 1m8s
This commit is contained in:
parent
102a23e54c
commit
94b8191e96
1 changed files with 15 additions and 5 deletions
20
action.yml
20
action.yml
|
@ -39,10 +39,14 @@ runs:
|
|||
id: install-docker-quick
|
||||
shell: bash
|
||||
run: |
|
||||
echo "🐋 Installing Docker..."
|
||||
curl -fsSL https://get.docker.com | sh
|
||||
echo "✅ Docker installed"
|
||||
docker --version
|
||||
if ! command -v docker &> /dev/null; then
|
||||
echo "🐋 Installing Docker..."
|
||||
curl -fsSL https://get.docker.com | sh
|
||||
echo "✅ Docker installed"
|
||||
docker --version
|
||||
else
|
||||
echo "🐋 Docker already installed"
|
||||
fi
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: setup-buildx
|
||||
|
@ -129,7 +133,13 @@ runs:
|
|||
--push \
|
||||
.
|
||||
echo "🔨 Docker image built and pushed."
|
||||
|
||||
- name: Verify Image
|
||||
shell: bash
|
||||
env:
|
||||
TAGS: ${{ inputs.tags }}
|
||||
NAME: ${{ inputs.name }}
|
||||
REGISTRY_URL: ${{ inputs.registry-url }}
|
||||
run: |
|
||||
# Verify each tag
|
||||
for TAG in "${TAG_ARRAY[@]}"; do
|
||||
if ! docker manifest inspect "$REGISTRY_URL/$NAME:$TAG" > /dev/null; then
|
||||
|
|
Loading…
Add table
Reference in a new issue