Skip to content

Update ci.yml to use new Github actions #1

Update ci.yml to use new Github actions

Update ci.yml to use new Github actions #1

Workflow file for this run

name: ci-nullplatform
on:
push:
branches:
- master
- main
permissions:
id-token: write
contents: read
packages: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Start Nullplatform CI
id: setup-ci
uses: nullplatform/github-action-setup-ci@v1
with:
api-key: ${{ secrets.NULLPLATFORM_API_KEY }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Get build parameters
id: get-build-parameters
uses: nullplatform/github-action-parameter@v1
with:
application-id: ${{ steps.setup-ci.outputs.application-id }}
- name: Build asset for ${{ steps.setup-ci.outputs.application-name }}
id: build-asset
uses: nullplatform/github-action-asset-build@v1
with:
options: BUILD_ARGS='--build-arg GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}'
- name: Push asset for ${{ steps.setup-ci.outputs.application-name }}
id: push-asset
uses: nullplatform/github-action-asset-push@v1
with:
build-id: ${{ steps.setup-ci.outputs.build-id }}
type: docker-image
- name: End Nullplatform CI
if: ${{ always() }}
id: end-setup-ci
uses: nullplatform/github-action-setup-ci@v1
with:
build-id: ${{ steps.setup-ci.outputs.build-id }}
status: ${{ contains(fromJSON('["failure", "cancelled"]'), job.status) && 'failed' || 'successful' }}