この Webサイトのデプロイを forestry.io 経由から AWS CodeBuild 経由に戻した
読了まで:約0分
実は
と
で、
まぁ一応 buildspec.yml
を
version: 0.2
phases:
install:
runtime-versions:
nodejs: 10
commands:
- apt-get install -qq curl locales make
- curl -sL https://github.com/gohugoio/hugo/releases/download/v0.55.6/hugo_extended_0.55.6_Linux-64bit.deb -o hugo.deb
- dpkg -i hugo.deb
pre_build:
commands:
- export LC_ALL="en_US.UTF-8"
- locale-gen en_US en_US.UTF-8
- dpkg-reconfigure locales
- test -d $HOME/repo || mkdir -p $HOME/repo
- cd $HOME/repo
- test -d .git || (git init && git remote add upstream https://oauth2:${gitlabToken}@gitlab.com/nyarla/${gitlabRepo})
- git pull upstream master
build:
commands:
- cd $HOME/repo
- export PATH=/usr/local/bin:$PATH
- make build
post_build:
commands:
- make deploy
cache:
paths:
- $HOME/repo
ま、