This repository was archived by the owner on Oct 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +54
-5
lines changed Expand file tree Collapse file tree 3 files changed +54
-5
lines changed Original file line number Diff line number Diff line change 55 push :
66 branches :
77 - main
8- pull_request :
9- branches :
10- - main
118 workflow_dispatch :
129
1310permissions :
5047 context : .
5148 file : ./Dockerfile
5249 platforms : linux/amd64,linux/arm64
53- push : ${{ github.event_name != 'pull_request' }}
50+ push : true
5451 tags : ${{ steps.meta.outputs.tags }}
5552 labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 1+ ---
2+ name : Build and push pr tag
3+
4+ on :
5+ pull_request :
6+ workflow_dispatch :
7+
8+ permissions :
9+ contents : write
10+ packages : write
11+
12+ jobs :
13+ build_container :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Check out code
17+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
18+
19+ - name : Set up QEMU
20+ uses : docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3
21+
22+ - name : Set up Docker Buildx
23+ uses : docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3
24+
25+ - name : Login to image registry
26+ uses : docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3
27+ with :
28+ registry : ghcr.io
29+ username : ${{ github.actor }}
30+ password : ${{ secrets.GITHUB_TOKEN }}
31+
32+ - name : Docker meta
33+ id : meta
34+ uses : docker/metadata-action@31cebacef4805868f9ce9a0cb03ee36c32df2ac4 # v5
35+ with :
36+ images : |
37+ ghcr.io/${{ github.repository_owner }}/gatus-operator
38+ tags : |
39+ type=ref,event=branch
40+ type=ref,event=pr
41+
42+ - name : Build and push
43+ uses : docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5
44+ with :
45+ context : .
46+ file : ./Dockerfile
47+ platforms : linux/amd64,linux/arm64
48+ push : true
49+ tags : ${{ steps.meta.outputs.tags }}
50+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 4242 images : |
4343 ghcr.io/${{ github.repository_owner }}/gatus-operator
4444 tags : |
45+ type=semver,pattern={{version}},prefix=v
46+ type=semver,pattern={{major}}.{{minor}},prefix=v
47+ type=semver,pattern={{major}},prefix=v
4548 type=ref,event=tag
4649
4750 - name : Build and push
5558 labels : ${{ steps.meta.outputs.labels }}
5659
5760 - name : Create GitHub release
58- # Create a release when a tag is pushed
5961 if : success() && startsWith(github.ref, 'refs/tags/')
6062 uses : ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5 # v1
6163 with :
You can’t perform that action at this time.
0 commit comments