-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from shiouen/feature/pipeline
feature/pipeline
- Loading branch information
Showing
8 changed files
with
214 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: development | ||
|
||
on: | ||
push: | ||
branches-ignore: [ main ] | ||
|
||
env: | ||
GO_VERSION: 1.21 | ||
HUGO_VERSION: 0.121.0 | ||
NUSHELL_VERSION: 0.88.0 | ||
SBOT_VERSION: 1.4.1 | ||
|
||
jobs: | ||
build: | ||
name: pipeline | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: set up go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: set up hugo | ||
run: | | ||
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb | ||
sudo dpkg -i ${{ runner.temp }}/hugo.deb | ||
- name: set up nushell | ||
uses: hustcer/[email protected] | ||
with: | ||
version: ${{ env.NUSHELL_VERSION }} | ||
|
||
- name: set up path | ||
run: | | ||
mkdir bin | ||
echo "$(pwd)/bin" >> $GITHUB_PATH | ||
- name: install semverbot | ||
run: | | ||
curl -o bin/sbot -L https://github.com/restechnica/semverbot/releases/download/v$SBOT_VERSION/sbot-linux-amd64 | ||
chmod +x bin/sbot | ||
- name: prepare release | ||
run: | | ||
sbot update version --verbose | ||
release_version="$(sbot predict version --verbose)" | ||
echo "RELEASE_VERSION=${release_version}" >> $GITHUB_ENV | ||
- name: build | ||
run: nu run.nu build | ||
|
||
- name: authenticate gcs | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
credentials_json: ${{ secrets.GCS_SA_KEY }} | ||
|
||
- name: set up gcloud | ||
uses: google-github-actions/setup-gcloud@v2 | ||
with: | ||
version: ">= 363.0.0" | ||
|
||
- name: authenticate aws | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
aws-region: eu-central-1 | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
||
- name: try infra | ||
run: nu run.nu try-infra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: main | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
env: | ||
GO_VERSION: 1.21 | ||
HUGO_VERSION: 0.121.0 | ||
NUSHELL_VERSION: 0.88.0 | ||
SBOT_VERSION: 1.4.1 | ||
|
||
jobs: | ||
build: | ||
name: pipeline | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: set up go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: set up hugo | ||
run: | | ||
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb | ||
sudo dpkg -i ${{ runner.temp }}/hugo.deb | ||
- name: set up nushell | ||
uses: hustcer/[email protected] | ||
with: | ||
version: ${{ env.NUSHELL_VERSION }} | ||
|
||
- name: set up path | ||
run: | | ||
mkdir bin | ||
echo "$(pwd)/bin" >> $GITHUB_PATH | ||
- name: install semverbot | ||
run: | | ||
curl -o bin/sbot -L https://github.com/restechnica/semverbot/releases/download/v$SBOT_VERSION/sbot-linux-amd64 | ||
chmod +x bin/sbot | ||
- name: prepare release | ||
run: | | ||
sbot update version --verbose | ||
release_version="$(sbot predict version --verbose)" | ||
echo "RELEASE_VERSION=${release_version}" >> $GITHUB_ENV | ||
- name: build | ||
run: nu run.nu build | ||
|
||
- name: authenticate gcs | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
credentials_json: ${{ secrets.GCS_SA_KEY }} | ||
|
||
- name: set up gcloud | ||
uses: google-github-actions/setup-gcloud@v2 | ||
with: | ||
version: ">= 363.0.0" | ||
|
||
- name: authenticate aws | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
aws-region: eu-central-1 | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
||
- name: deploy | ||
run: nu run.nu deploy --infra | ||
|
||
- name: release | ||
run: | | ||
sbot update version --verbose | ||
sbot release version --verbose | ||
sbot push version --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,4 @@ themes/ | |
.idea | ||
|
||
### Terraform | ||
*.terraform.* | ||
*.terraform | ||
terraform* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module github.com/shiouen/oliviervanaken.com | ||
|
||
go 1.21.5 | ||
go 1.21 | ||
|
||
require github.com/adityatelange/hugo-PaperMod v0.0.0-20240107104123-71ce72b1bfb8 // indirect |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters