Skip to content

Commit aa4b202

Browse files
authored
Init Pipeline (#3706)
1 parent 2b653e4 commit aa4b202

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/build-steemd.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build All steemd Dockerfiles
2+
3+
on:
4+
push:
5+
paths:
6+
- "deploy/**"
7+
- ".github/workflows/build-steemd.yml"
8+
9+
pull_request:
10+
11+
workflow_dispatch:
12+
13+
jobs:
14+
build-matrix:
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
dockerfile:
21+
- Dockerfile.azurelinux3.0
22+
- Dockerfile.debian13
23+
- Dockerfile.ubuntu20.04
24+
- Dockerfile.ubuntu22.04
25+
- Dockerfile.ubuntu24.04
26+
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v4
30+
31+
- name: Build Docker image
32+
run: |
33+
set -ex
34+
35+
FILE="deploy/${{ matrix.dockerfile }}"
36+
NAME="${{ matrix.dockerfile }}"
37+
TAG="steem:${NAME#Dockerfile.}"
38+
39+
echo "Building Dockerfile: $FILE"
40+
echo "Tag: $TAG"
41+
42+
sudo -E docker build \
43+
--build-arg NUMBER_BUILD_THREADS=1 \
44+
-t "$TAG" \
45+
-f "$FILE" \
46+
.

0 commit comments

Comments
 (0)