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