kopia lustrzana https://github.com/jupyterhub/repo2docker
49 wiersze
1.2 KiB
YAML
49 wiersze
1.2 KiB
YAML
# This is a GitHub workflow defining a set of jobs with a set of steps.
|
|
# ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
|
|
#
|
|
name: Docker build
|
|
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- "docs/**"
|
|
- "**.md"
|
|
- "**.rst"
|
|
- ".github/workflows/*"
|
|
- "!.github/workflows/docker.yml"
|
|
- ".pre-commit-config.yaml"
|
|
push:
|
|
paths-ignore:
|
|
- "docs/**"
|
|
- "**.md"
|
|
- "**.rst"
|
|
- ".github/workflows/*"
|
|
- "!.github/workflows/docker.yml"
|
|
- ".pre-commit-config.yaml"
|
|
branches-ignore:
|
|
- "dependabot/**"
|
|
- "pre-commit-ci-update-config"
|
|
tags:
|
|
- "**"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
# https://github.com/docker/build-push-action
|
|
- name: Build Docker image
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
context: .
|
|
tags: jupyter/repo2docker:pr
|
|
push: false
|
|
|
|
- name: Run repo2docker Docker image
|
|
run: docker run jupyter/repo2docker:pr repo2docker --version
|