-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1132 from parente/github-actions
Switch to GitHub Actions for CI/CD
- Loading branch information
Showing
39 changed files
with
545 additions
and
803 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Build Docker Images | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- "*.md" | ||
- "binder/**" | ||
- "docs/**" | ||
- "examples/**" | ||
|
||
jobs: | ||
build: | ||
name: Build Docker Images | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message , 'ci skip')" | ||
steps: | ||
- name: Clone Main Repo | ||
uses: actions/checkout@v2 | ||
with: | ||
path: main | ||
- name: Clone Wiki | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: ${{github.repository}}.wiki | ||
path: wiki | ||
- name: Set Up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Install Dev Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
make -C main dev-env lint-install | ||
- name: Lint Dockerfiles | ||
run: make -C main lint-all | ||
- name: Build Docker Images | ||
run: make -C main build-test-all | ||
- name: Run Post-Build Hooks | ||
run: make -C main hook-all | ||
env: | ||
COMMIT_MSG: "${{github.event.head_commit.message}}" | ||
WIKI_PATH: ../wiki | ||
|
||
push: | ||
name: Push Docker Images | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build | ||
if: github.ref == 'refs/heads/master' | ||
steps: | ||
- name: Login to Docker Hub | ||
run: > | ||
echo '${{secrets.DOCKERHUB_PASSWORD}}' | docker login --username | ||
'${{secrets.DOCKERHUB_USERNAME}}'' --password-stdin | ||
- name: Push Images to DockerHub | ||
run: make -C main push-all | ||
- name: Push Wiki to GitHub | ||
run: make -C main git-commit | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_REPOSITORY: ${{github.repository}}.wiki | ||
LOCAL_PATH: ../wiki |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Build Sphinx Documentation | ||
|
||
on: | ||
push: | ||
paths: | ||
- "docs/**" | ||
- ".github/workflows/sphinx.yml" | ||
|
||
jobs: | ||
build: | ||
name: Build Sphinx Documentation | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message , 'ci skip')" | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
- name: Set Up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
- name: Install Dev Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
make dev-env | ||
- name: Build Documentation | ||
run: make docs | ||
|
||
gettext: | ||
name: Update Translation Source Strings | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build | ||
if: github.ref == 'refs/heads/master' | ||
steps: | ||
- name: Extract Source Strings | ||
working-directory: docs | ||
run: | | ||
make gettext | ||
sphinx-intl update -p _build/gettext -l en | ||
- name: Push Strings to Master | ||
run: make git-commit | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_REPOSITORY: ${{ github.repository }} | ||
LOCAL_PATH: ./docs/locale/en |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
18 changes: 16 additions & 2 deletions
18
all-spark-notebook/hooks/manifest.tmpl → all-spark-notebook/hooks/run_hook
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.