File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and publish Docker image
2
+ on : [push]
3
+
4
+ env :
5
+ REGISTRY : ghcr.io
6
+ # make sure the name is lowercase, otherwise Docker won't accept it
7
+ IMAGE_NAME : teamnewpipe/website
8
+
9
+ permissions :
10
+ repository : read
11
+ packages : write
12
+
13
+ jobs :
14
+ build :
15
+ runs-on : ubuntu-latest
16
+
17
+ permissions :
18
+ contents : read
19
+
20
+ steps :
21
+ - uses : actions/checkout@v3
22
+
23
+ - name : Login to GitHub Container Registry
24
+ uses : docker/login-action@v3
25
+ with :
26
+ registry : ${{ env.REGISTRY }}
27
+ username : ${{ github.actor }}
28
+ password : ${{ secrets.GITHUB_TOKEN }}
29
+
30
+ - name : Extract metadata (tags, labels) for Docker
31
+ id : meta
32
+ uses : docker/metadata-action@v5
33
+ with :
34
+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
35
+
36
+ - name : Build and push Docker image
37
+ uses : docker/build-push-action@v5
38
+ with :
39
+ context : .
40
+ push : true
41
+ tags : ${{ steps.meta.outputs.tags }}
42
+ labels : ${{ steps.meta.outputs.labels }}
43
+ platforms : |
44
+ linux/amd64
You can’t perform that action at this time.
0 commit comments