File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : ci
3+
4+ on :
5+ push :
6+ branches :
7+ - master
8+
9+ jobs :
10+ docker :
11+ strategy :
12+ matrix :
13+ runner :
14+ - ubuntu-latest
15+ - ubuntu-24.04-arm
16+ runs-on : ${{ matrix.runner }}
17+ permissions :
18+ contents : read
19+ packages : write
20+
21+ steps :
22+ - name : Checkout repository
23+ uses : actions/checkout@v3.3.0
24+
25+ - name : Setup Docker buildx
26+ uses : docker/setup-buildx-action@v2.5.0
27+
28+ - name : Log into GitHub registry
29+ uses : docker/login-action@v2.1.0
30+ with :
31+ registry : ghcr.io
32+ username : ${{ github.repository_owner }}
33+ password : ${{ secrets.GITHUB_TOKEN }}
34+
35+ - name : Extract Docker metadata
36+ id : meta
37+ uses : docker/metadata-action@v4.3.0
38+ with :
39+ images : ghcr.io/${{ github.repository_owner }}/postfix-exporter
40+
41+ # Build and push Docker image with Buildx (don't push on PR)
42+ # https://github.com/docker/build-push-action
43+ - name : Build and push Docker image
44+ id : build-and-push
45+ uses : docker/build-push-action@v4.0.0
46+ with :
47+ context : .
48+ push : true
49+ tags : ${{ steps.meta.outputs.tags }}
50+ labels : ${{ steps.meta.outputs.labels }}
51+ cache-from : type=gha
52+ cache-to : type=gha,mode=max
53+ file : Dockerfile
You can’t perform that action at this time.
0 commit comments