Skip to content

Commit 59c22c6

Browse files
[CI] Rename dockers workflow
1 parent b9dc320 commit 59c22c6

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Build and push Docker images to GHCR
2+
name: Dockers Build
3+
4+
on:
5+
workflow_call:
6+
workflow_dispatch:
7+
8+
permissions:
9+
packages: write
10+
contents: read
11+
12+
jobs:
13+
build-dockers:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
ubuntu-version: [20.04, 22.04, 24.04]
18+
outputs:
19+
status: ${{ job.status }}
20+
env:
21+
IMG: ghcr.io/bb-ur/umf-ubuntu-${{ matrix.ubuntu-version }}:latest
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
26+
with:
27+
fetch-depth: 0
28+
29+
- name: Login to GitHub Container Registry
30+
uses: docker/login-action@30f019fb76bb54d03ec1e716054622be511a13b2 # v3.2.0
31+
with:
32+
registry: ghcr.io
33+
username: bb-ur
34+
password: ${{ secrets.BB_GHCR_TOKEN }}
35+
36+
- name: Build and push ubuntu-${{ matrix.ubuntu-version }} Docker image
37+
run: |
38+
docker build -f .github/docker/ubuntu-${{ matrix.ubuntu-version }}.Dockerfile -t ${{ env.IMG }} .
39+
docker push ${{ env.IMG }}

0 commit comments

Comments
 (0)