One last pluin try now the the registry has been added globally
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
2026-02-01 22:51:22 -03:00
parent 850fc4ec1e
commit 28fdd03828

View File

@@ -6,42 +6,52 @@ when:
event: push event: push
steps: steps:
- name: Docker image build - name: Build and Publish Docker Image
image: docker:latest image: woodpeckerci/plugin-docker-buildx:latest
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
commands: privileged: true
- set -e settings:
- echo "=== Building Docker image ===" repo: git.mifi.dev/mifi-holdings/mail-autoconfig
- 'echo "Commit SHA: ${CI_COMMIT_SHA:0:8}"' auto_tag: true
- | registry: git.mifi.dev
docker build \
--tag git.mifi.dev/mifi-holdings/mail-autoconfig:${CI_COMMIT_SHA} \
--tag git.mifi.dev/mifi-holdings/mail-autoconfig:latest \
--label "git.commit=${CI_COMMIT_SHA}" \
--label "git.branch=${CI_COMMIT_BRANCH}" \
.
- name: Push to registry # - name: Docker image build
image: docker:latest # image: docker:latest
environment: # volumes:
REGISTRY_URL: git.mifi.dev # - /var/run/docker.sock:/var/run/docker.sock
REGISTRY_REPO: git.mifi.dev/mifi-holdings/mail-autoconfig # commands:
REGISTRY_USERNAME: # - set -e
from_secret: gitea_registry_username # - echo "=== Building Docker image ==="
REGISTRY_PASSWORD: # - 'echo "Commit SHA: ${CI_COMMIT_SHA:0:8}"'
from_secret: gitea_package_token # - |
volumes: # docker build \
- /var/run/docker.sock:/var/run/docker.sock # --tag git.mifi.dev/mifi-holdings/mail-autoconfig:${CI_COMMIT_SHA} \
depends_on: # --tag git.mifi.dev/mifi-holdings/mail-autoconfig:latest \
- Docker image build # --label "git.commit=${CI_COMMIT_SHA}" \
commands: # --label "git.branch=${CI_COMMIT_BRANCH}" \
- set -e # .
- echo "=== Pushing to registry ==="
- echo "$REGISTRY_PASSWORD" | docker login "$REGISTRY_URL" -u "$REGISTRY_USERNAME" --password-stdin # - name: Push to registry
- docker push $REGISTRY_REPO:${CI_COMMIT_SHA} # image: docker:latest
- docker push $REGISTRY_REPO:latest # environment:
- echo "✓ Images pushed successfully" # REGISTRY_URL: git.mifi.dev
# REGISTRY_REPO: git.mifi.dev/mifi-holdings/mail-autoconfig
# REGISTRY_USERNAME:
# from_secret: gitea_registry_username
# REGISTRY_PASSWORD:
# from_secret: gitea_package_token
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# depends_on:
# - Docker image build
# commands:
# - set -e
# - echo "=== Pushing to registry ==="
# - echo "$REGISTRY_PASSWORD" | docker login "$REGISTRY_URL" -u "$REGISTRY_USERNAME" --password-stdin
# - docker push $REGISTRY_REPO:${CI_COMMIT_SHA}
# - docker push $REGISTRY_REPO:latest
# - echo "✓ Images pushed successfully"
- name: Send Deploy Status Notification (success) - name: Send Deploy Status Notification (success)
image: curlimages/curl image: curlimages/curl