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
|
id: install-docker-quick
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "🐋 Installing Docker..."
|
if ! command -v docker &> /dev/null; then
|
||||||
curl -fsSL https://get.docker.com | sh
|
echo "🐋 Installing Docker..."
|
||||||
echo "✅ Docker installed"
|
curl -fsSL https://get.docker.com | sh
|
||||||
docker --version
|
echo "✅ Docker installed"
|
||||||
|
docker --version
|
||||||
|
else
|
||||||
|
echo "🐋 Docker already installed"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
id: setup-buildx
|
id: setup-buildx
|
||||||
|
@ -129,7 +133,13 @@ runs:
|
||||||
--push \
|
--push \
|
||||||
.
|
.
|
||||||
echo "🔨 Docker image built and pushed."
|
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
|
# Verify each tag
|
||||||
for TAG in "${TAG_ARRAY[@]}"; do
|
for TAG in "${TAG_ARRAY[@]}"; do
|
||||||
if ! docker manifest inspect "$REGISTRY_URL/$NAME:$TAG" > /dev/null; then
|
if ! docker manifest inspect "$REGISTRY_URL/$NAME:$TAG" > /dev/null; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue