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

Add option to set submodule strategy in github actions #20

Merged
merged 1 commit into from
Feb 16, 2024
Merged
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
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,11 @@ Create a folder `additional-files` in your `docker` folder (or configure a diffe
- **`enable-checkout` | `-`**
Enable [*checkout*](https://github.com/actions/checkout) action to (re-)download your repository prior to running the pipeline
*default:* `true`
- **`enable-checkout-submodules` | `-`**
Enable submodules for the [*checkout*](https://github.com/actions/checkout) action (`false`|`true`|`recursive`)
*default:* `recursive`
- **`enable-checkout-lfs` | `-`**
Enable [*git-lfs*](https://git-lfs.com/) support for the [*checkout*](https://github.com/actions/checkout) action
Enable [*Git LFS*](https://git-lfs.com/) support for the [*checkout*](https://github.com/actions/checkout) action
*default:* `true`
- **`enable-industrial-ci` | `ENABLE_INDUSTRIAL_CI`**
Enable [*industrial_ci*](https://github.com/ros-industrial/industrial_ci)
Expand Down
34 changes: 19 additions & 15 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ inputs:
target:
description: "Target stage of Dockerfile (comma-separated list) [dev|run]"
default: run

platform:
description: "Target platform architecture (comma-separated list) [amd64|arm64|...]"

base-image:
description: "Base image name:tag"
required: true

command:
description: "Launch command of run image (required if target=run)"

image-name:
description: "Image name of run image"
default: ghcr.io/${{ github.repository }}
Expand Down Expand Up @@ -53,15 +53,15 @@ inputs:

ros-distro:
description: "ROS Distro (required if ROS is not installed in `base-image`)"

git-https-server:
description: "Server URL (without protocol) for cloning private Git repositories via HTTPS"
default: "github.com"

git-https-user:
description: "Username for cloning private Git repositories via HTTPS"
default: ${{ github.actor }}

git-https-password:
description: "Password for cloning private Git repositories via HTTPS"
default: ${{ github.token }}
Expand All @@ -75,7 +75,7 @@ inputs:
additional-debs-file:
description: "Relative filepath to file containing additional apt deb packages to install"
default: docker/additional-debs.txt

enable-recursive-additional-debs:
description: "Enable recursive discovery of files named `additional-debs-file`"
default: false
Expand All @@ -87,7 +87,7 @@ inputs:
additional-pip-file:
description: "Relative filepath to file containing additional pip packages to install"
default: docker/additional-pip-requirements.txt

enable-recursive-additional-pip:
description: "Enable recursive discovery of files named `additional-pip-file`"
default: false
Expand All @@ -103,19 +103,19 @@ inputs:
custom-script-file:
description: "Relative filepath to script containing custom installation commands"
default: docker/custom.sh

enable-recursive-custom-script:
description: "Enable recursive discovery of files named `custom-script-file`"
default: false

enable-industrial-ci:
description: "Enable industrial_ci"
default: false

enable-singlearch-push:
description: "Enable push of single arch images with [-amd64|-arm64] postfix"
default: false

enable-push-as-latest:
description: "Push images with tag `latest`/`latest-dev` in addition to the configured image names"
default: false
Expand All @@ -124,8 +124,12 @@ inputs:
description: "Enable checkout action to (re-)download your repository prior to running the pipeline"
default: true

enable-checkout-submodules:
description: "Enable submodules for the checkout action (false|true|recursive)"
default: recursive
jpbusch marked this conversation as resolved.
Show resolved Hide resolved

enable-checkout-lfs:
description: "Enable git-lfs support for the checkout action "
description: "Enable Git LFS support for the checkout action"
default: true


Expand All @@ -137,7 +141,7 @@ runs:
uses: actions/checkout@v3
if: ${{ inputs.enable-checkout == 'true' }}
with:
submodules: true
submodules: ${{ inputs.enable-checkout-submodules }}
lfs: ${{ inputs.enable-checkout-lfs }}

- name: Set up docker-ros
Expand All @@ -164,7 +168,7 @@ runs:
registry: ${{ inputs.registry }}
username: ${{ inputs.registry-user }}
password: ${{ inputs.registry-password }}

- name: Set up Docker buildx
uses: docker/setup-buildx-action@v3

Expand Down
Loading