The "Nullplatform Asset" GitHub Action enables asset management on nullplatform within your GitHub Actions workflows. You can create and manage various asset types, such as Docker images, Lambdas, and more, effortlessly.
- Description: The asset action controls what happens to the asset. Can be one of:
create
,update
. Defaultcreate
- Required: No
- Description: The build ID where this asset belongs to.
- Required: Yes
- Description: Asset type, e.g.,
docker-image
,lambda
, etc. - Required: Yes
- Description: Asset name. By default, it's set to
main
. - Required: No
- Description: Asset metadata, in the format
<key>:<value>
. - Required: No
- Description: Predefined asset URL. Advanced usage, not recommended. Use
type
andname
instead. - Required: No
- Description: The asset ID.
- Description: The build ID associated with the asset.
- Description: The asset name, identifying the asset.
- Description: The asset type, e.g.,
docker-image
,lambda
, etc.
- Description: The asset targets, an array containing URLs by provider where the asset must be uploaded.
- Description: The asset-associated metadata, presented as a key-value object.
name: Create Nullplatform Asset
on:
push:
branches:
- main
jobs:
create_asset:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Login to Nullplatform
id: login
uses: nullplatform/github-action-login@v1
with:
api-key: ${{ secrets.NULLPLATFORM_API_KEY }}
- name: Create Nullplatform Build
id: create-build
uses: nullplatform/github-action-build@v1
with:
action: create
application-id: your-app-id
- name: Create Nullplatform Asset
id: create-asset
uses: nullplatform/github-action-asset@v1
with:
action: create
build-id: ${{ steps.create-build.outputs.id }}
type: docker-image
name: my-docker-image
- name: Display Asset ID
run: echo "Asset ID: ${{ steps.create-asset.outputs.id }}"
In this example, the GitHub Action creates a new asset with the name "my-docker-image".
This GitHub Action is licensed under the MIT License.