20 Commits

Author SHA1 Message Date
Chuck Driesler ec9237a314 chore(action): bump internal action (#33)
pre-commit / pre-commit (push) Has been cancelled
2025-09-23 17:19:28 +01:00
Chuck Driesler 7480b04a91 drop internal checkout (#32) 2025-09-19 11:41:41 +01:00
Iain Sproat cc5ebe707c build(deps): bump speckle-automate-github-action from 0.9.0 to 0.10.0 (#28) 2024-10-07 12:42:24 +01:00
dependabot[bot] 0aa892ad33 build(deps): Bump docker/login-action from 3.0.0 to 3.1.0 (#26)
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v3.0.0...v3.1.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-07 12:30:51 +01:00
dependabot[bot] 3e90df75b7 build(deps): Bump docker/build-push-action from 5.1.0 to 5.3.0 (#27)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5.1.0 to 5.3.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5.1.0...v5.3.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-07 12:30:30 +01:00
dependabot[bot] f58e89de52 build(deps): Bump specklesystems/speckle-automate-github-action (#24)
Bumps [specklesystems/speckle-automate-github-action](https://github.com/specklesystems/speckle-automate-github-action) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/specklesystems/speckle-automate-github-action/releases)
- [Commits](https://github.com/specklesystems/speckle-automate-github-action/compare/0.9.1...0.9.2)

---
updated-dependencies:
- dependency-name: specklesystems/speckle-automate-github-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-07 12:30:10 +01:00
dependabot[bot] 2d8896e903 build(deps): Bump specklesystems/speckle-automate-github-action (#23)
Bumps [specklesystems/speckle-automate-github-action](https://github.com/specklesystems/speckle-automate-github-action) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/specklesystems/speckle-automate-github-action/releases)
- [Commits](https://github.com/specklesystems/speckle-automate-github-action/compare/0.9.0...0.9.1)

---
updated-dependencies:
- dependency-name: specklesystems/speckle-automate-github-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-08 21:16:12 +00:00
dependabot[bot] 263c01beed build(deps): Bump pre-commit/action from 3.0.0 to 3.0.1 (#22)
Bumps [pre-commit/action](https://github.com/pre-commit/action) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/pre-commit/action/releases)
- [Commits](https://github.com/pre-commit/action/compare/v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: pre-commit/action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-08 21:12:27 +00:00
Iain Sproat ef858630b7 chore(deps): bump speckle-automate-github-action from 0.8.0 to 0.9.0 (#21) 2024-01-09 20:11:11 +00:00
dependabot[bot] 496e37fe2e build(deps): Bump actions/setup-python from 4 to 5 (#20)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-12 16:38:36 +00:00
dependabot[bot] 78dc2c527b build(deps): Bump docker/setup-buildx-action from 2 to 3 (#18)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-20 10:37:58 +00:00
dependabot[bot] 1e5c0c6cf0 build(deps): Bump docker/build-push-action from 5.0.0 to 5.1.0 (#19)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5.0.0...v5.1.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-20 10:37:22 +00:00
Iain Sproat 2b331cc43b feat(docker build): cache image and build steps to github actions cache (#17)
* feat(docker build): cache image and build steps to registry cache
* Configure buildx to enable docker cache
2023-11-12 19:26:53 +00:00
Iain Sproat c39aec0850 chore(speckle-automate-github-action): bump to 0.8.0 (#16)
- fixes to README
2023-11-12 17:32:25 +00:00
Iain Sproat 2eacc79a5b chore(deps): bump speckle-automate-github-action from 0.7.0 to 0.7.1 (#15) 2023-11-10 23:06:22 +00:00
dependabot[bot] d9b35b8221 build(deps): Bump actions/checkout from 3 to 4 (#8)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 17:50:48 +00:00
dependabot[bot] 16a7c69d01 build(deps): Bump docker/login-action from 2.2.0 to 3.0.0 (#10)
Bumps [docker/login-action](https://github.com/docker/login-action) from 2.2.0 to 3.0.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2.2.0...v3.0.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 17:48:55 +00:00
dependabot[bot] efd9578585 build(deps): Bump docker/build-push-action from 4.1.1 to 5.0.0 (#11)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 4.1.1 to 5.0.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v4.1.1...v5.0.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 17:48:35 +00:00
Iain Sproat ccf80151b1 chore(README): Update README to include compute resources (#14) 2023-11-07 17:42:24 +00:00
Iain Sproat 87109a5b60 chore(deps): bump speckle-automate-github-action from 0.6.1 to 0.7.0 (#13)
* chore(deps): bump speckle-automate-github-action from 0.6.1 to 0.7.0

* Define the inputs
2023-11-06 18:12:00 +01:00
3 changed files with 31 additions and 16 deletions
+3 -3
View File
@@ -9,6 +9,6 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: pre-commit/action@v3.0.0
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/action@v3.0.1
+13 -9
View File
@@ -32,15 +32,10 @@ Please note that this is not a Speckle Account token, but a **Speckle Automate A
Your Speckle Token must have write permissions for the Speckle Function with this ID, otherwise the publish will fail.
#### `speckle_function_path`
The path to the Speckle Automate Function to publish. This path is relative to the root of the repository. If you provide a path to a directory, your Speckle Automate Function must be in a file named `specklefunction.yaml` within that directory.
Defaults to the root of the repository.
#### `speckle_function_input_schema`
#### `speckle_function_input_schema_file_path`
The path to a file containing a JSON Schema. This JSON Schema defines the parameters required by the Function. The JSON Schema will be used to automatically create the User Interface displayed to users of your Function in Speckle Automate. Users will be able to provide their data to customise the Function.
This can be an absolute path, or a path relative to the Home directory of the GitHub Action runner.
Defaults to `./input-schema.json`
@@ -50,6 +45,14 @@ Defaults to `./input-schema.json`
For example, if you are using Python, you might use `python3 main.py`. If you are using Node.js, you might use `node main.js`. If using bash shell, `bash main.sh` etc. etc.. Even if the command is defined within your Dockerfile (for examples, using the `CMD` or `ENTRYPOINT` statements), you must provide the command here in order for Speckle Automate to run the function.
#### `speckle_function_recommended_cpu_m`
The recommended maximum CPU in millicores for the function. 1000 millicores = 1 CPU core. Defaults to 1000 millicores (1 CPU core). If the Function exceeds this limit, it will be throttled to run within the limit.
#### `speckle_function_recommended_memory_mi`
The recommended maximum memory in mebibytes for the function. 1024 mebibytes = 1 gibibyte. Defaults to 100 mebibytes. If the Function exceeds this limit, it will be terminated.
#### `dockerfile_path`
Path to the Dockerfile to be used to build the Speckle Function.
@@ -89,8 +92,9 @@ This GitHub Action does not have any outputs. Please instead inspect the logs to
docker:
runs-on: ubuntu-latest
steps:
-
name: Register, Build, and Publish a Speckle Function
- name: Checkout
uses: actions/checkout@v5 # <-- CONFIGURE CHECKOUT FOR YOUR CODE
- name: Register, Build, and Publish a Speckle Function
uses: specklesystems/speckle-automate-github-composite-action
with:
speckle_token: ${{ secrets.SPECKLE_FUNCTION_PUBLISH_TOKEN }}
+15 -4
View File
@@ -21,6 +21,12 @@ inputs:
speckle_function_command:
description: 'The command to run to execute the function in a runtime environment.'
required: true
speckle_function_recommended_cpu_m:
description: 'The recommended maximum CPU in millicores for the function. 1000 millicores = 1 CPU core. Defaults to 1000 millicores (1 CPU core). If the Function exceeds this limit, it will be throttled to run within the limit.'
required: false
speckle_function_recommended_memory_mi:
description: 'The recommended maximum memory in mebibytes for the function. 1024 mebibytes = 1 gibibyte. Defaults to 100 mebibytes. If the Function exceeds this limit, it will be terminated.'
required: false
dockerfile_path:
description: 'Path to the Dockerfile to be used to build the Speckle Function.'
required: false
@@ -32,7 +38,6 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/checkout@v3.5.3 # checkout the repository in which this GitHub Action is being used.
- name: Validate inputs
shell: bash
run: |
@@ -72,8 +77,10 @@ runs:
echo "Setting the function's releaseTag to: ${RELEASE_TAG}"
echo "releaseTag=${RELEASE_TAG}" >> "$GITHUB_ENV"
- name: Set up Docker Buildx # required to enable caching of docker build
uses: docker/setup-buildx-action@v3
- name: Log in to Speckle Automate Docker registry
uses: docker/login-action@v2.2.0
uses: docker/login-action@v3.1.0
with:
registry: ${{ inputs.speckle_automate_url }}
username: ${{ inputs.speckle_token }}
@@ -95,15 +102,17 @@ runs:
exit 1
fi
- name: Build and push Docker image
uses: docker/build-push-action@v4.1.1
uses: docker/build-push-action@v5.3.0
with:
context: ${{ inputs.docker_context }}
file: ${{ inputs.dockerfile_path }}
tags: ${{ env.automateHost }}/${{ inputs.speckle_function_id }}:${{ env.releaseTag }}
target: ''
push: true
cache-from: type=registry,ref=${{ env.automateHost }}/${{ inputs.speckle_function_id }}:buildcache
cache-to: type=registry,ref=${{ env.automateHost }}/${{ inputs.speckle_function_id }}:buildcache,mode=max
- name: Speckle Automate function version publisher
uses: specklesystems/speckle-automate-github-action@0.6.1
uses: specklesystems/speckle-automate-github-action@0.11.0
id: register_speckle_function_version
with:
speckle_automate_url: ${{ inputs.speckle_automate_url }}
@@ -112,3 +121,5 @@ runs:
speckle_function_input_schema_file_path: ${{ inputs.speckle_function_input_schema_file_path }}
speckle_function_release_tag: ${{ env.releaseTag }}
speckle_function_command: ${{ inputs.speckle_function_command }}
speckle_function_recommended_cpu_m: ${{ inputs.speckle_function_recommended_cpu_m }}
speckle_function_recommended_memory_mi: ${{ inputs.speckle_function_recommended_memory_mi }}