repo2docker/.github/workflows/docker.yml

49 wiersze
1.2 KiB
YAML
Czysty Zwykły widok Historia

2022-10-08 11:28:21 +00:00
# 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
#
2020-09-08 10:26:22 +00:00
name: Docker build
on:
2022-10-08 11:28:21 +00:00
pull_request:
paths-ignore:
- "docs/**"
- "**.md"
- "**.rst"
- ".github/workflows/*"
- "!.github/workflows/docker.yml"
- ".pre-commit-config.yaml"
2022-10-08 11:28:21 +00:00
push:
paths-ignore:
- "docs/**"
- "**.md"
- "**.rst"
- ".github/workflows/*"
- "!.github/workflows/docker.yml"
- ".pre-commit-config.yaml"
2022-10-08 11:28:21 +00:00
branches-ignore:
- "dependabot/**"
- "pre-commit-ci-update-config"
tags:
- "**"
workflow_dispatch:
2020-09-08 10:26:22 +00:00
jobs:
docker:
2022-10-08 12:22:45 +00:00
runs-on: ubuntu-22.04
2020-09-08 10:26:22 +00:00
steps:
- name: Checkout code
uses: actions/checkout@v4
2020-09-08 10:26:22 +00:00
with:
fetch-depth: 0
# https://github.com/docker/build-push-action
- name: Build Docker image
uses: docker/build-push-action@v5
2020-09-08 10:26:22 +00:00
with:
context: .
tags: jupyter/repo2docker:pr
2020-09-08 10:26:22 +00:00
push: false
- name: Run repo2docker Docker image
2020-09-08 10:32:26 +00:00
run: docker run jupyter/repo2docker:pr repo2docker --version