Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Commit 55cf64a

Browse files
authored
chore(ci): use reusable workflows (#153)
Signed-off-by: Olivier Léobal <olivier.leobal@owkin.com>
1 parent f221bcd commit 55cf64a

File tree

3 files changed

+26
-55
lines changed

3 files changed

+26
-55
lines changed

.github/workflows/docker-build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Docker build
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches: [main]
6+
release:
7+
types: [published, edited]
8+
pull_request:
9+
branches: [main]
10+
11+
concurrency:
12+
group: "${{ github.workflow_ref }} - ${{ github.ref }} - ${{ github.event_name }}"
13+
cancel-in-progress: true
14+
15+
jobs:
16+
build:
17+
strategy:
18+
matrix:
19+
images: [fabric-peer, fabric-tools]
20+
uses: substra/substra-gha-workflows/.github/workflows/docker-build.yaml@main
21+
with:
22+
image: ${{ matrix.images }}

.github/workflows/docker.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

docker/fabric-tools/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
FROM hyperledger/fabric-tools:2.4
22

3+
# avoid the shell swallowing errors
4+
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
5+
36
# Install curl and netcat
4-
RUN apk update && \
5-
apk add curl netcat-openbsd vim libc6-compat && \
7+
RUN apk --no-cache add curl netcat-openbsd vim libc6-compat && \
68
apk upgrade libcurl
79

810
# Install fabric-ca-client

0 commit comments

Comments
 (0)