File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : staging
2+
3+ on :
4+ push :
5+ branches :
6+ - staging
7+
8+ jobs :
9+ image :
10+ name : Image
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Check out code into the Go module directory
14+ uses : actions/checkout@v2
15+ with :
16+ fetch-depth : 0
17+
18+ - name : Login to GitHub Container Registry
19+ uses : docker/login-action@v1
20+ with :
21+ registry : ghcr.io
22+ username : ${{ github.actor }}
23+ password : ${{ secrets.GITHUB_TOKEN }}
24+
25+ - name : Extract metadata (tags, labels) for Docker
26+ id : meta
27+ uses : docker/metadata-action@v3
28+ with :
29+ images : ghcr.io/${{ github.repository }}
30+ flavor : |
31+ latest=false
32+ tags : |
33+ type=raw,value=staging
34+
35+ - name : Set up Docker Buildx
36+ id : buildx
37+ uses : docker/setup-buildx-action@v1
38+ with :
39+ buildkitd-flags : --debug
40+
41+ - name : Build and push Docker image
42+ uses : docker/build-push-action@v2
43+ with :
44+ context : .
45+ push : false
46+ tags : ${{ steps.meta.outputs.tags }}
47+ labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments