File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build REST
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ tags :
8+ - ' v*'
9+ pull_request :
10+ branches :
11+ - main
12+
13+ jobs :
14+ build :
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - uses : actions/checkout@v2
19+ - name : Set up Docker Buildx
20+ uses : docker/setup-buildx-action@v1
21+ - name : Docker meta
22+ id : meta
23+ uses : docker/metadata-action@v3
24+ with :
25+ images : geplauder/rest
26+ tags : |
27+ type=ref,event=branch
28+ type=ref,event=pr
29+ type=semver,pattern={{version}}
30+ type=semver,pattern={{major}}.{{minor}}
31+ github-token : ${{ github.token }}
32+ - name : Login to GHCR
33+ uses : docker/login-action@v1
34+ with :
35+ registry : ghcr.io
36+ username : ${{ github.actor }}
37+ password : ${{ secrets.PACKAGES_PAT }}
38+ - name : Build and push
39+ uses : docker/build-push-action@v2
40+ with :
41+ context : .
42+ push : true
43+ tags : ${{ steps.meta.outputs.tags }}
44+ labels : ${{ steps.meta.outputs.labels }}
45+ cache-from : type=gha
46+ cache-to : type=gha,mode=max
Original file line number Diff line number Diff line change 1+ name : Build Websocket
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ tags :
8+ - ' v*'
9+ pull_request :
10+ branches :
11+ - main
12+
13+ jobs :
14+ build :
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - uses : actions/checkout@v2
19+ - name : Set up Docker Buildx
20+ uses : docker/setup-buildx-action@v1
21+ - name : Docker meta
22+ id : meta
23+ uses : docker/metadata-action@v3
24+ with :
25+ images : geplauder/websocket
26+ tags : |
27+ type=ref,event=branch
28+ type=ref,event=pr
29+ type=semver,pattern={{version}}
30+ type=semver,pattern={{major}}.{{minor}}
31+ github-token : ${{ github.token }}
32+ - name : Login to GHCR
33+ uses : docker/login-action@v1
34+ with :
35+ registry : ghcr.io
36+ username : ${{ github.actor }}
37+ password : ${{ secrets.PACKAGES_PAT }}
38+ - name : Build and push
39+ uses : docker/build-push-action@v2
40+ with :
41+ context : .
42+ file : ./ferrum-websocket/Dockerfile
43+ push : true
44+ tags : ${{ steps.meta.outputs.tags }}
45+ labels : ${{ steps.meta.outputs.labels }}
46+ cache-from : type=gha
47+ cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments