aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build-blog.yml
blob: d9f9d5f4b8f4ba5f381353248404a5e5e1ccaa7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
on:
  push:
    paths:
      - 'blog/**'
    branches:
      - master
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          submodules: true
      - run: |
          cd blog/
          rustup toolchain install nightly --profile minimal
          podman login quay.io -u $USER -p $TOKEN --authfile ~/docker-config
          chmod ugo+r ~/docker-config
          ./build.rs --docker-config ~/docker-config . quay.io/alexpdp7/blog:latest
        env:
          USER: ${{ vars.BLOG_ROBOT_USERNAME }}
          TOKEN: ${{ secrets.BLOG_ROBOT_TOKEN }}