-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build fix: remove R packages not utilized, remove unnecessary files i…
…n Docker build (#571)
- Loading branch information
1 parent
4e80d2f
commit 988a78c
Showing
8 changed files
with
61 additions
and
70 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 |
---|---|---|
|
@@ -15,7 +15,6 @@ jobs: | |
packages: write | ||
|
||
steps: | ||
|
||
- name: 🧾 Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
|
@@ -26,12 +25,20 @@ jobs: | |
run: | | ||
docker system prune --all --force --volumes | ||
- name: 🧹 Additional disk space cleanup | ||
run: | | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf /usr/local/lib/android/sdk | ||
sudo apt-get clean | ||
sudo rm -rf /var/lib/apt/lists/* | ||
- name: 🐳 Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: 🐳 Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: 📦 Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
|
@@ -81,7 +88,7 @@ jobs: | |
tags: ${{ steps.meta.outputs.tags }} | ||
build-args: | | ||
BIOC_VERSION=${{ github.ref_name }} | ||
- name: 🚀 Push local Docker image to ghcr.io | ||
uses: docker/build-push-action@v4 | ||
with: | ||
|
@@ -93,7 +100,7 @@ jobs: | |
build-args: | | ||
BIOC_VERSION=${{ github.ref_name }} | ||
- name: 📚 Recover pkg artifacts generated during build in local Docker container (pkg bundle and book) | ||
- name: 📚 Recover pkg artifacts generated during build in local Docker container (pkg bundle and book) | ||
env: | ||
IMG: ${{ steps.docker.outputs.ImageID }} | ||
run: | | ||
|
@@ -110,10 +117,10 @@ jobs: | |
- name: 🚀 Deploy book to Github Pages on versioned branch | ||
uses: JamesIves/[email protected] | ||
with: | ||
folder: ${{ env.book_path }}/ | ||
target-folder: docs/${{ env.target_folder }}/ | ||
folder: ${{ env.book_path }}/ | ||
target-folder: docs/${{ env.target_folder }}/ | ||
branch: gh-pages | ||
clean: false | ||
clean: false | ||
|
||
- name: 💾 Upload package bundle artifact | ||
uses: actions/upload-artifact@v3 | ||
|
@@ -125,4 +132,4 @@ jobs: | |
uses: actions/upload-artifact@v3 | ||
with: | ||
name: book | ||
path: ${{ env.book_path }} | ||
path: ${{ env.book_path }} |
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 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 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 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 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 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 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