Skip to content

Commit dc551b0

Browse files
committed
fix workflows
1 parent 65f4393 commit dc551b0

2 files changed

Lines changed: 33 additions & 2 deletions

File tree

.github/workflows/docker.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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: touch .env
23+
24+
- name: Build image
25+
run: |
26+
docker buildx build \
27+
--platform linux/amd64,linux/arm64 \
28+
.

.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)