Compare commits
No commits in common. "1c91dbeb15c77bdc214147a39dde69ec50a5d25b" and "9ccf5c5246cd335eadc0c0df8cb6d91ad3c1322e" have entirely different histories.
1c91dbeb15
...
9ccf5c5246
1 changed files with 40 additions and 11 deletions
|
@ -1,15 +1,44 @@
|
||||||
when:
|
---
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: debian
|
when:
|
||||||
|
event: [push]
|
||||||
|
image: node:20.17.0
|
||||||
commands:
|
commands:
|
||||||
- echo "This is the build step"
|
- export GO_VERSION=1.22.3
|
||||||
- echo "binary-data-123" > executable
|
- export HUGO_VERSION=0.134.2
|
||||||
- name: a-test-step
|
- export HUGO_ENV=production
|
||||||
image: golang:1.16
|
- apt-get update && apt-get install -y curl
|
||||||
commands:
|
- echo "https://github.com/gohugoio/hugo/releases/download/v$${HUGO_VERSION}/hugo_extended_$${HUGO_VERSION}_Linux-64bit.tar.gz"
|
||||||
- echo "Testing ..."
|
- curl -LO "https://github.com/gohugoio/hugo/releases/download/v$${HUGO_VERSION}/hugo_extended_$${HUGO_VERSION}_Linux-64bit.tar.gz"
|
||||||
- ./executable
|
- tar -xvf hugo_extended_$${HUGO_VERSION}_Linux-64bit.tar.gz
|
||||||
|
- 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
|
||||||
|
|
Loading…
Reference in a new issue