diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..daf8294 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,25 @@ +skip_clone: true + +steps: + clone: + image: alpine/git + commands: + - echo "172.17.0.1 git.fosil.eu" >> /etc/hosts + - git clone https://git.fosil.eu/labasarea/laba-webgunea.git . + + build: + image: node:22-alpine + environment: + STRAPI_URL: + from_secret: STRAPI_URL + SITE_URL: + from_secret: SITE_URL + volumes: + - astro-dist:/deploy + commands: + - echo "172.17.0.1 kudeatu.laba.eus" >> /etc/hosts + - corepack enable + - pnpm --filter front install --frozen-lockfile + - pnpm front:build + - rm -rf /deploy/* + - cp -a front/dist/. /deploy/