Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: [docker] [ci] fix dockerfiles, test docker builds in CI #6638

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions .appveyor.yml

This file was deleted.

136 changes: 0 additions & 136 deletions .github/workflows/cuda.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Docker

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

# automatically cancel in-progress builds if another commit is pushed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: dockerfile-cli
run: |
docker build \
--build-arg LIGHTGBM_GIT_REF=${{ github.sha }} \
- < ./docker/dockerfile-python
- name: dockerfile-r
run: |
docker build \
--build-arg LIGHTGBM_GIT_REF=${{ github.sha }} \
- < ./docker/dockerfile-r
- name: dockerfile-python
run: |
docker build \
--build-arg LIGHTGBM_GIT_REF=${{ github.sha }} \
- < ./docker/dockerfile-python
- name: dockerfile.gpu
run: |
docker build \
--build-arg LIGHTGBM_GIT_REF=${{ github.sha }} \
- < ./docker/gpu/dockerfile.gpu
- name: dockerfile-cli-only.gpu
run: |
docker build \
--build-arg LIGHTGBM_GIT_REF=${{ github.sha }} \
- < ./docker/gpu/dockerfile-cli-only.gpu
- name: dockerfile-cli-only-distroless.gpu
run: |
docker build \
--build-arg LIGHTGBM_GIT_REF=${{ github.sha }} \
- < ./docker/gpu/dockerfile-cli-only-distroless.gpu
all-docker-jobs-successful:
if: always()
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Note that all tests succeeded
uses: re-actors/[email protected]
with:
jobs: ${{ toJSON(needs) }}
Loading
Loading