Skip to content

more image build/push/PR opening testing #90

more image build/push/PR opening testing

more image build/push/PR opening testing #90

Workflow file for this run

name: Build and test container image
on:
pull_request:
jobs:
test-build:
runs-on: ubuntu-latest
env:
DOCKER_CONFIG: $HOME/.docker
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 4096
swap-size-mb: 1024
remove-dotnet: 'true'
- name: Checkout files in repo
uses: actions/checkout@v4
- name: See if the image config changed
id: changed-files
uses: tj-actions/changed-files@v44
with:
files_ignore: |
.github/**
images/**
- name: What files changed?
if: steps.changed-files.outputs.any_changed == 'true'
env:
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
echo "One or more image file(s) has changed:"
echo "$CHANGED_FILES"
- name: Build and test the image if any image file changed
if: steps.changed-files.outputs.any_changed == 'true'
uses: jupyterhub/repo2docker-action@master
with:
REPO_DIR: /srv/repo
NO_PUSH: true
# Lets us monitor disks getting full as images get bigger over time
- name: Show how much disk space is left
run: df -h