File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments