0.7.3 #15
Workflow file for this run
This file contains 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: | |
packages: write | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write # auth w/JSR | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.45.5 | |
- name: setup qemu | |
uses: docker/setup-qemu-action@v3 | |
- name: setup buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: login to docker hub | |
uses: docker/login-action@v3 | |
with: | |
username: williamfromnj | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: go to the directory | |
run: cd packages/lightning | |
- name: publish to jsr | |
run: | | |
cd packages/lightning | |
deno publish | |
- name: setup docker metadata | |
id: metadata | |
uses: docker/metadata-action@v5 | |
with: | |
images: williamfromnj/bolt | |
tags: type=ref,event=tag | |
- name: build and push | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: ./packages/lightning/Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: ${{ steps.metadata.outputs.tags }} | |
labels: ${{ steps.metadata.outputs.labels }} |