Skip to content

Update personal_site_config.toml #61

Update personal_site_config.toml

Update personal_site_config.toml #61

Workflow file for this run

name: Continuous Build
on:
push:
branches:
- '**' # This will trigger the workflow on push to any branch
pull_request:
branches:
- '**' # This will trigger the workflow on pull requests to any branch
release:
types: [created] # This will trigger the workflow when a release is created
jobs:
build:
name: Build Website with Docker
runs-on: ubuntu-latest
services:
docker:
image: docker:24.0.9
options: --privileged
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Checkout code
uses: actions/checkout@v3 # This will checkout the repository containing the workflow
- name: Copy Config File
run: cp -r personal_site loconotion/personal_site
shell: bash
- name: Set up Docker Compose
run: |
sudo curl -SL "https://github.com/docker/compose/releases/download/v2.24.6/docker-compose-linux-x86_64" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
- name: Build loconotion container
run: |
cp loconotion_patch/Dockerfile loconotion/docker/Dockerfile
cd loconotion
docker-compose build loconotion
- name: Run loconotion renderer
run: |
cd loconotion
docker-compose run loconotion personal_site/personal_site_config.toml
- name: S3 Deploy
run: |
aws s3 sync /tmp/Nasrudin_Salim s3://${{ secrets.BUCKET_NAME }}
- name: Purge cache
uses: jakejarvis/cloudflare-purge-action@master
env:
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}