-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (50 loc) · 1.36 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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 }}