8
8
jobs :
9
9
build-and-push-docker :
10
10
runs-on : ubuntu-latest
11
+
11
12
steps :
12
13
- name : Checkout repository
13
14
uses : actions/checkout@v3
22
23
- name : Set up Docker Buildx
23
24
uses : docker/setup-buildx-action@v2
24
25
26
+ - name : List files in apps/web
27
+ run : ls -l apps/web
28
+
25
29
- name : Build and push web Docker image
26
30
uses : docker/build-push-action@v4
27
31
with :
38
42
push : true
39
43
tags : |
40
44
ghcr.io/${{ github.repository_owner }}/api:latest
41
- ghcr.io/${{ github.repository_owner }}/api:${{ github.sha }}
42
-
43
- generate-changelog :
44
- runs-on : ubuntu-latest
45
- steps :
46
- - name : Checkout repository
47
- uses : actions/checkout@v3
48
- with :
49
- fetch-depth : 0
50
-
51
- - name : Generate changelog with conventional commits
52
- id : changelog
53
- uses : conventional-changelog/action@v3
54
- with :
55
- github-token : ${{ secrets.GITHUB_TOKEN }}
56
- preset : conventionalcommits
57
- output-file : CHANGELOG.md
58
-
59
- - name : Commit changelog
60
- run : |
61
- git config --global user.name "GitHub Actions"
62
- git config --global user.email "actions@github.com"
63
- git add CHANGELOG.md
64
- git commit -m "chore: Update changelog"
65
- git push
66
-
67
- create-release :
68
- runs-on : ubuntu-latest
69
- needs : [build-and-push-docker, generate-changelog]
70
- steps :
71
- - name : Checkout repository
72
- uses : actions/checkout@v3
73
-
74
- - name : Create GitHub release
75
- id : create-release
76
- uses : actions/create-release@v1
77
- with :
78
- tag_name : v1.0.0-${{ github.sha }}
79
- release_name : Release v1.0.0-${{ github.sha }}
80
- body : ${{ steps.changelog.outputs.changelog }}
81
- draft : false
82
- prerelease : false
83
- env :
84
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45
+ ghcr.io/${{ github.repository_owner }}/api:${{ github.sha }}
0 commit comments