File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ release :
4
+ types : [created]
5
+ permissions :
6
+ contents : write
7
+ packages : write
8
+ env :
9
+ REGISTRY : ghcr.io
10
+ IMAGE_NAME : ${{ github.repository }}
11
+ jobs :
12
+ build-and-push-image :
13
+ runs-on : ubuntu-latest
14
+ permissions :
15
+ contents : read
16
+ packages : write
17
+ steps :
18
+ - name : Checkout repository
19
+ uses : actions/checkout@v4
20
+ - name : Log in to the Container registry
21
+ uses : docker/login-action@v3
22
+ with :
23
+ registry : ${{ env.REGISTRY }}
24
+ username : ${{ github.actor }}
25
+ password : ${{ secrets.GITHUB_TOKEN }}
26
+ - name : Extract metadata (tags, labels) for Docker
27
+ id : meta
28
+ uses : docker/metadata-action@v4
29
+ with :
30
+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
31
+ - name : Build and push Docker image
32
+ uses : docker/build-push-action@v4
33
+ with :
34
+ context : .
35
+ build-args : |
36
+ cachet_ver=${{ github.ref_name }}
37
+ push : true
38
+ tags : ${{ steps.meta.outputs.tags }}
39
+ labels : ${{ steps.meta.outputs.labels }}
40
+
You can’t perform that action at this time.
0 commit comments