You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.6 KiB
62 lines
1.6 KiB
name: CI
|
|
|
|
on: push
|
|
|
|
permissions:
|
|
contents: write
|
|
packages: write
|
|
|
|
jobs:
|
|
build-and-package:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- uses: pnpm/[email protected]
|
|
with:
|
|
version: latest
|
|
|
|
- name: Install Dependencies
|
|
run: pnpm install
|
|
|
|
- name: Build Package
|
|
run: pnpm build
|
|
|
|
- name: Package Output
|
|
run: pnpm package
|
|
|
|
- name: Upload Artifact
|
|
uses: "marvinpinto/action-automatic-releases@latest"
|
|
with:
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
automatic_release_tag: "latest"
|
|
prerelease: false
|
|
files: |
|
|
./dist/build.tar
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
- name: Buildah Build
|
|
id: build-container
|
|
uses: redhat-actions/[email protected]
|
|
with:
|
|
containerfiles: |
|
|
./Containerfile
|
|
image: ${{github.event.repository.full_name}}
|
|
tags: latest ${{ github.sha }}
|
|
oci: true
|
|
platforms: linux/amd64, linux/arm64
|
|
|
|
- name: Push To Registry
|
|
id: push-to-registry
|
|
uses: redhat-actions/[email protected]
|
|
with:
|
|
image: ${{ steps.build-container.outputs.image }}
|
|
tags: ${{ steps.build-container.outputs.tags }}
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Print image url
|
|
run: echo "Image pushed to ${{ steps.push-to-registry.outputs.registry-paths }}"
|
|
|