File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Container Build and Release
2
+
3
+ on :
4
+ push :
5
+ paths-ignore :
6
+ - ' **.md'
7
+ branches :
8
+ - ' **'
9
+ pull_request :
10
+ paths-ignore :
11
+ - ' **.md'
12
+ workflow_dispatch :
13
+
14
+ env :
15
+ ESPHOME_CFG : compost-0.yaml
16
+
17
+ jobs :
18
+ build-release-container :
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+ with :
23
+ ref : ' main'
24
+
25
+ - name : Set up QEMU
26
+ uses : docker/setup-qemu-action@v2
27
+
28
+ - name : Login to GitHub Container Registry
29
+ uses : docker/login-action@v2
30
+ with :
31
+ registry : ghcr.io
32
+ username : ${{ github.actor }}
33
+ password : ${{ secrets.GITHUB_TOKEN }}
34
+
35
+ - name : Set up Docker Buildx
36
+ uses : docker/setup-buildx-action@v2
37
+
38
+ - name : Build and push container to ghcr
39
+ id : docker_build
40
+ uses : docker/build-push-action@v6
41
+ with :
42
+ build-args : ESPHOME_CFG=$ESPHOME_CFG
43
+ platforms : linux/amd64
44
+ push : true
45
+ file : Containerfile
46
+ tags : ghcr.io/bbusse/compost-sensor:latest
47
+
48
+ - name : Image digest
49
+ run : echo ${{ steps.docker_build.outputs.digest }}
You can’t perform that action at this time.
0 commit comments