-
-
Notifications
You must be signed in to change notification settings - Fork 180
41 lines (33 loc) · 927 Bytes
/
docker-build.yml
File metadata and controls
41 lines (33 loc) · 927 Bytes
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
name: docker-build
on:
push:
branches: [master]
paths:
- "**Dockerfile**"
pull_request:
branches: [master]
paths:
- "**Dockerfile"
jobs:
build:
name: Build '${{ matrix.project }}' Docker container
strategy:
fail-fast: false
matrix:
project: [api, ssh, gateway, ui, cli]
runs-on: ubuntu-24.04
steps:
- name: Checkout source code
uses: actions/checkout@v6
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: registry.infra.ossystems.io
username: ${{ secrets.PORTUS_USERNAME }}
password: ${{ secrets.PORTUS_TOKEN }}
- name: Build '${{ matrix.project }}' Docker container
uses: docker/build-push-action@v6
with:
tags: shellhubio/${{ matrix.project }}:latest
push: false
file: ${{ matrix.project }}/Dockerfile