Skip to content

Commit

Permalink
First draft build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbrownlie authored Nov 11, 2024
1 parent f89a897 commit ad75a01
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
quarto-setup:
runs-on: ubuntu-latest
steps:
- uses: quarto-dev/quarto-actions/setup@v2
- run: quarto --version

render:
needs: quarto-setup
runs-on: ubuntu-latest
steps:
- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2
with:
to: html # If set, it will be equivalent to `quarto render --to html`
path: source-folder # By default, the current working dir is used i.e `quarto render .`

build:
needs: render
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag christopherbrownlie/blog:$(date +%s)

0 comments on commit ad75a01

Please sign in to comment.