Goodbye bullshit plugin that just won't work...
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
@@ -6,51 +6,42 @@ when:
|
||||
event: push
|
||||
|
||||
steps:
|
||||
- name: Build and Publish Docker Image
|
||||
image: woodpeckerci/plugin-docker-buildx:latest
|
||||
- name: Docker image build
|
||||
image: docker:latest
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
privileged: true
|
||||
settings:
|
||||
repo: git.mifi.dev/mifi-holdings/mail-autoconfig
|
||||
auto_tag: true
|
||||
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: Docker image build
|
||||
# image: docker:latest
|
||||
# volumes:
|
||||
# - /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
|
||||
# image: docker:latest
|
||||
# environment:
|
||||
# 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: Push to registry
|
||||
image: docker:latest
|
||||
environment:
|
||||
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)
|
||||
image: curlimages/curl
|
||||
|
||||
Reference in New Issue
Block a user