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} \ # - name: Docker image build
--tag git.mifi.dev/mifi-holdings/mail-autoconfig:latest \ # image: docker:latest
--label "git.commit=${CI_COMMIT_SHA}" \ # volumes:
--label "git.branch=${CI_COMMIT_BRANCH}" \ # - /var/run/docker.sock:/var/run/docker.sock
. # commands:
# - set -e
# - echo "=== Building Docker image ==="
# - 'echo "Commit SHA: ${CI_COMMIT_SHA:0:8}"'
# - |
# 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: Push to registry
image: docker:latest # image: docker:latest
environment: # environment:
REGISTRY_URL: git.mifi.dev # REGISTRY_URL: git.mifi.dev
REGISTRY_REPO: git.mifi.dev/mifi-holdings/mail-autoconfig # REGISTRY_REPO: git.mifi.dev/mifi-holdings/mail-autoconfig
REGISTRY_USERNAME: # REGISTRY_USERNAME:
from_secret: gitea_registry_username # from_secret: gitea_registry_username
REGISTRY_PASSWORD: # REGISTRY_PASSWORD:
from_secret: gitea_package_token # from_secret: gitea_package_token
volumes: # volumes:
- /var/run/docker.sock:/var/run/docker.sock # - /var/run/docker.sock:/var/run/docker.sock
depends_on: # depends_on:
- Docker image build # - Docker image build
commands: # commands:
- set -e # - set -e
- echo "=== Pushing to registry ===" # - echo "=== Pushing to registry ==="
- echo "$REGISTRY_PASSWORD" | docker login "$REGISTRY_URL" -u "$REGISTRY_USERNAME" --password-stdin # - echo "$REGISTRY_PASSWORD" | docker login "$REGISTRY_URL" -u "$REGISTRY_USERNAME" --password-stdin
- docker push $REGISTRY_REPO:${CI_COMMIT_SHA} # - docker push $REGISTRY_REPO:${CI_COMMIT_SHA}
- docker push $REGISTRY_REPO:latest # - docker push $REGISTRY_REPO:latest
- echo "✓ Images pushed successfully" # - echo "✓ Images pushed successfully"
- name: Send Deploy Status Notification (success) - name: Send Deploy Status Notification (success)
image: curlimages/curl image: curlimages/curl