Compare commits

...

2 commits

Author SHA1 Message Date
1c91dbeb15 hello world ci on main
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2024-12-13 22:42:57 +01:00
07930a4f60 hello world ci on main 2024-12-13 22:42:03 +01:00

View file

@ -1,44 +1,15 @@
--- when:
- event: push
branch: main
steps: steps:
- name: build - name: build
when: image: debian
event: [push]
image: node:20.17.0
commands: commands:
- export GO_VERSION=1.22.3 - echo "This is the build step"
- export HUGO_VERSION=0.134.2 - echo "binary-data-123" > executable
- export HUGO_ENV=production - name: a-test-step
- apt-get update && apt-get install -y curl image: golang:1.16
- echo "https://github.com/gohugoio/hugo/releases/download/v$${HUGO_VERSION}/hugo_extended_$${HUGO_VERSION}_Linux-64bit.tar.gz" commands:
- curl -LO "https://github.com/gohugoio/hugo/releases/download/v$${HUGO_VERSION}/hugo_extended_$${HUGO_VERSION}_Linux-64bit.tar.gz" - echo "Testing ..."
- tar -xvf hugo_extended_$${HUGO_VERSION}_Linux-64bit.tar.gz - ./executable
- mv hugo /usr/local/bin/
- rm hugo_extended_$${HUGO_VERSION}_Linux-64bit.tar.gz
- echo "HUGO $${HUGO_VERSION} INSTALLED"
- curl -LO "https://dl.google.com/go/go$${GO_VERSION}.linux-amd64.tar.gz"
- tar -C /usr/local -xzf go$${GO_VERSION}.linux-amd64.tar.gz
- export PATH=$PATH:/usr/local/go/bin
- rm go$${GO_VERSION}.linux-amd64.tar.gz
- echo "GO $${GO_VERSION} INSTALLED"
- npm run project-setup
- npm install
- npm run build
- name: deploy
when:
event: [push]
branch: [main]
image: plugins/s3
settings:
bucket: chtinux.org
endpoint: https://garage.deuxfleurs.fr
region: garage
access_key:
from_secret: chtinux_aws_access_key_id
secret_key:
from_secret: chtinux_aws_secret_access_key
source: public/**/*
target: /
strip_prefix: public/
path_style: true