Skip to content

Commit 4213f2d

Browse files
committed
fix workflows
1 parent 65f4393 commit 4213f2d

2 files changed

Lines changed: 37 additions & 2 deletions

File tree

.github/workflows/docker.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
name: Docker
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
build:
9+
name: Build
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Git clone the repository
13+
uses: actions/checkout@v4
14+
15+
- name: Set up QEMU
16+
uses: docker/setup-qemu-action@v3
17+
18+
- name: Set up Docker Buildx
19+
uses: docker/setup-buildx-action@v3
20+
21+
- name: Create .env
22+
run: |
23+
touch .env
24+
mkdir keys
25+
touch keys/sp-cert.pem
26+
touch keys/sp-key.pem
27+
28+
- name: Build image
29+
run: |
30+
docker buildx build \
31+
--platform linux/amd64,linux/arm64 \
32+
.

.github/workflows/publish.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Publish
22
on:
3-
- push
4-
- workflow_dispatch
3+
push:
4+
branches:
5+
- master
6+
workflow_dispatch:
7+
58
permissions:
69
id-token: write
710
contents: read

0 commit comments

Comments
 (0)