-
Notifications
You must be signed in to change notification settings - Fork 55
35 lines (31 loc) · 988 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: ci
on:
push:
branches: [master]
pull_request:
branches: [master]
# Cancel old builds when pushing new commits.
concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
common:
uses: TokTok/ci-tools/.github/workflows/common-ci.yml@master
docker:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker Build
uses: docker/build-push-action@v6
with:
tags: toxchat/toktok.github.io:latest
outputs: type=docker
- name: Extract toktok-site directory from docker image
run: docker run --rm --entrypoint tar toxchat/toktok.github.io:latest -C /home/builder/build -c toktok-site | tar -x
- name: Upload toktok-site to artifacts
uses: actions/upload-artifact@v4
with:
name: toktok-site
path: toktok-site
if-no-files-found: error