Goodbye bullshit plugin that just won't work...
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
2026-02-01 23:05:32 -03:00
parent cdd79b08d2
commit 4da965ffe9

View File

@@ -6,51 +6,42 @@ when:
event: push event: push
steps: steps:
- name: Build and Publish Docker Image - name: Docker image build
image: woodpeckerci/plugin-docker-buildx:latest image: docker:latest
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
privileged: true commands:
settings: - set -e
repo: git.mifi.dev/mifi-holdings/mail-autoconfig - echo "=== Building Docker image ==="
auto_tag: true - 'echo "Commit SHA: ${CI_COMMIT_SHA:0:8}"'
- |
# - name: Docker image build docker build \
# image: docker:latest --tag git.mifi.dev/mifi-holdings/mail-autoconfig:${CI_COMMIT_SHA} \
# volumes: --tag git.mifi.dev/mifi-holdings/mail-autoconfig:latest \
# - /var/run/docker.sock:/var/run/docker.sock --label "git.commit=${CI_COMMIT_SHA}" \
# commands: --label "git.branch=${CI_COMMIT_BRANCH}" \
# - 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