File tree 6 files changed +541
-3059
lines changed
6 files changed +541
-3059
lines changed Original file line number Diff line number Diff line change 1
1
name : Build
2
2
3
3
on :
4
- schedule :
5
- - cron : " 0 0 * * *"
6
4
push :
7
5
tags :
8
6
- " v*.*.*"
28
26
pysergio/hiroshi
29
27
# generate Docker tags based on the following events/attributes
30
28
tags : |
31
- type=schedule
32
29
type=ref,event=branch
33
30
type=ref,event=pr
34
31
type=semver,pattern={{version}}
Original file line number Diff line number Diff line change
1
+ name : Update Dependencies and Build Docker Image
2
+
3
+ on :
4
+ schedule :
5
+ - cron : ' 0 11 * * *'
6
+
7
+ jobs :
8
+ update-and-build :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+
14
+ - name : Set up QEMU
15
+ uses : docker/setup-qemu-action@v2
16
+
17
+ - name : Set up Docker Buildx
18
+ uses : docker/setup-buildx-action@v2
19
+
20
+ - name : Login to Docker Hub
21
+ uses : docker/login-action@v2
22
+ with :
23
+ username : ' ${{ secrets.DOCKERHUB_USERNAME }}'
24
+ password : ' ${{ secrets.DOCKERHUB_TOKEN }}'
25
+
26
+ - name : Set up Python
27
+ uses : actions/setup-python@v4
28
+ with :
29
+ python-version : ' 3.11'
30
+
31
+ - name : Install poetry
32
+ run : pipx install poetry==1.7.0
33
+
34
+ - name : Update dependencies
35
+ run : |
36
+ poetry update
37
+ poetry export -f requirements.txt --output requirements.txt --without-hashes
38
+
39
+ - name : Docker meta
40
+ id : meta
41
+ uses : docker/metadata-action@v5
42
+ with :
43
+ images : |
44
+ pysergio/hiroshi
45
+ tags : |
46
+ type=schedule,pattern=latest
47
+
48
+ - name : Build and push
49
+ uses : docker/build-push-action@v3
50
+ with :
51
+ context : .
52
+ file : Dockerfile
53
+ platforms : ' linux/amd64,linux/arm64'
54
+ push : true
55
+ tags : ' ${{ steps.meta.outputs.tags }}'
56
+ labels : ' ${{ steps.meta.outputs.labels }}'
57
+ cache-from : ' type=registry,ref=pysergio/hiroshi:buildcache'
58
+ cache-to : ' type=registry,ref=pysergio/hiroshi:buildcache,mode=max'
59
+
Original file line number Diff line number Diff line change @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
+ ## [ 0.1.2] - 2024-02-08
11
+
12
+ ### Added
13
+
14
+ - GitHub Action for building an artifact on a schedule with an updated version of g4f
15
+
16
+ ### Changed
17
+
18
+ - Dependencies updated.
19
+
20
+
10
21
## [ 0.1.1] - 2023-11-24
11
22
12
23
### Changed
You can’t perform that action at this time.
0 commit comments