-
Notifications
You must be signed in to change notification settings - Fork 304
34 lines (29 loc) · 949 Bytes
/
docker-mkdocs.yml
File metadata and controls
34 lines (29 loc) · 949 Bytes
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
# Build and push the Docker image for building the site (mkdocs material)
name: Build Docker [MkDocs]
on:
pull_request:
paths:
- ".github/mkdocs.Dockerfile"
- ".github/workflows/docker-mkdocs.yml"
push:
branches: [master]
jobs:
mkdocs_docker:
if: github.repository == 'nextflow-io/training'
name: Build + push mkdocs docker image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v6
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build / push latest image
uses: docker/build-push-action@v6
with:
file: .github/mkdocs.Dockerfile
push: ${{ github.event_name == 'push' }}
tags: ghcr.io/nextflow-io/training-mkdocs:latest