diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-11-20 04:52:29 +0100 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-11-20 04:52:29 +0100 |
| commit | 963eb0f1180b6a48300de5877b66f4b268f298b4 (patch) | |
| tree | a35fde5f3cd4ded1cc185f109a07be16d63b54e9 /.woodpecker.yml | |
| parent | 855d363fd43184bbf4621effe9a687a08bddf08d (diff) | |
| download | alicelinux-963eb0f1180b6a48300de5877b66f4b268f298b4.tar.gz alicelinux-963eb0f1180b6a48300de5877b66f4b268f298b4.zip | |
Update .woodpecker.yml
Diffstat (limited to '.woodpecker.yml')
| -rw-r--r-- | .woodpecker.yml | 54 |
1 files changed, 33 insertions, 21 deletions
diff --git a/.woodpecker.yml b/.woodpecker.yml index 1138ba83..c000f50b 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,31 +1,43 @@ steps: publish: - image: docker:20.10 # Docker CLI image to enable docker login & pull + image: alpine:edge environment: - DOCKER_USER: - from_secret: DOCKER_USER - DOCKER_PASS: - from_secret: DOCKER_PASS CBMAIL: from_secret: "mail" CBTOKEN: from_secret: "codeberg_token" commands: - # Login to Docker Hub - - echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin - - # Pull Alpine after login (authenticated) - - docker pull alpine:edge - - # Run build inside Alpine container - - docker run --rm -v $PWD:/workspace -w /workspace alpine:edge sh -c " - apk add --no-cache git curl bash && - cd website && - chmod +x ./build.sh && - ./build.sh - " - - # Git config and push steps remain the same + - apk add --no-cache git curl + - cd website + - chmod +x ./build.sh + - ./build.sh - git config --global user.email "$${CBMAIL}" - git config --global user.name "Woodpecker CI" - # ... rest of git clone/push commands + - git clone -b pages https://$${CBTOKEN}@codeberg.org/$CI_REPO.git $CI_REPO_NAME + - cd $CI_REPO_NAME + - git rm -r "*" || true + - cp -ar ../public/. ../.domains . || true + - git add --all + - git commit -m "Woodpecker CI ${CI_COMMIT_SHA} [SKIP CI]" --allow-empty + - git push + - cd ../.. + - rm -rf $CI_REPO_NAME + - git clone -b core https://$${CBTOKEN}@codeberg.org/$CI_REPO.git $CI_REPO_NAME + - cd $CI_REPO_NAME + - git rm -r "*" || true + - cp -ar ../repos/core/. . || true + - git add --all + - git commit -m "Woodpecker CI ${CI_COMMIT_SHA} [SKIP CI]" --allow-empty + - git push + - cd .. + - rm -rf $CI_REPO_NAME + - git clone -b extra https://$${CBTOKEN}@codeberg.org/$CI_REPO.git $CI_REPO_NAME + - cd $CI_REPO_NAME + - git rm -r "*" || true + - cp -ar ../repos/extra/. . || true + - git add --all + - git commit -m "Woodpecker CI ${CI_COMMIT_SHA} [SKIP CI]" --allow-empty + - git push + + when: + event: [push]
\ No newline at end of file |