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 : Standalone
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+ workflow_dispatch :
8+
9+ env :
10+ REGISTRY : ghcr.io
11+ IMAGE_NAME : oban-bg/oban-dash
12+
13+ jobs :
14+ build-and-push :
15+ runs-on : ubuntu-24.04
16+
17+ permissions :
18+ contents : read
19+ packages : write
20+
21+ steps :
22+ - uses : actions/checkout@v4
23+
24+ - name : Log in to Container Registry
25+ uses : docker/login-action@v3
26+ with :
27+ registry : ${{ env.REGISTRY }}
28+ username : ${{ github.actor }}
29+ password : ${{ secrets.GITHUB_TOKEN }}
30+
31+ - name : Extract metadata for Docker
32+ id : meta
33+ uses : docker/metadata-action@v5
34+ with :
35+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
36+ tags : |
37+ type=semver,pattern={{version}}
38+ type=semver,pattern={{major}}.{{minor}}
39+ type=raw,value=latest,enable={{is_default_branch}}
40+
41+ - name : Build and push Docker image
42+ uses : docker/build-push-action@v6
43+ with :
44+ context : standalone
45+ push : true
46+ tags : ${{ steps.meta.outputs.tags }}
47+ labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments