diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-11-20 04:50:51 +0100 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-11-20 04:50:51 +0100 |
| commit | 855d363fd43184bbf4621effe9a687a08bddf08d (patch) | |
| tree | 9c80d0878cf3900ecc8de8b80e288c5ca6db68cf /.woodpecker.yml | |
| parent | bcee846d9cbb9c413d995265edd10c1860e7cd33 (diff) | |
| download | alicelinux-855d363fd43184bbf4621effe9a687a08bddf08d.tar.gz alicelinux-855d363fd43184bbf4621effe9a687a08bddf08d.zip | |
Update .woodpecker.yml
Diffstat (limited to '.woodpecker.yml')
| -rw-r--r-- | .woodpecker.yml | 58 |
1 files changed, 13 insertions, 45 deletions
diff --git a/.woodpecker.yml b/.woodpecker.yml index 15c5f967..1138ba83 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,6 +1,6 @@ steps: publish: - image: alpine:edge + image: docker:20.10 # Docker CLI image to enable docker login & pull environment: DOCKER_USER: from_secret: DOCKER_USER @@ -11,53 +11,21 @@ steps: CBTOKEN: from_secret: "codeberg_token" commands: - # Authenticate to Docker Hub so future pulls succeed + # Login to Docker Hub - echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin - # Install required packages - - apk add --no-cache git curl bash + # Pull Alpine after login (authenticated) + - docker pull alpine:edge - # Run build script - - cd website - - chmod +x ./build.sh - - ./build.sh + # 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 + " - # Configure git + # Git config and push steps remain the same - git config --global user.email "$${CBMAIL}" - git config --global user.name "Woodpecker CI" - - # Push to pages branch - - 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 - - # Push to core branch - - 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 - - # Push to extra branch - - 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 - - cd .. - - rm -rf $CI_REPO_NAME - - when: - event: [push] + # ... rest of git clone/push commands |