Skip to content

Commit

Permalink
Update ci.yml to use new Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pablovilas authored Oct 7, 2023
1 parent e99f746 commit c65830f
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 41 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/ci-ecr.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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' }}

0 comments on commit c65830f

Please sign in to comment.