Build #22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
permissions: | |
contents: read | |
packages: write | |
id-token: write | |
jobs: | |
publish_jsr: | |
name: publish to jsr | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v2.2.11 | |
- name: publish to jsr | |
run: deno publish | |
publish_docker: | |
name: publish to ghcr | |
runs-on: ubuntu-latest | |
needs: publish_jsr | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: login to ghcr | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{secrets.GITHUB_TOKEN}} | |
- name: build image with podman | |
id: build-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ghcr.io/williamhorning/lightning | |
archs: amd64, arm64 | |
tags: latest ${{github.ref_name}} | |
containerfiles: ./containerfile | |
- name: push to ghcr.io | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: ${{ steps.build-image.outputs.image }} | |
tags: ${{ steps.build-image.outputs.tags }} | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{ secrets.GITHUB_TOKEN }} |