-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (50 loc) · 1.55 KB
/
docker-build-push.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Docker Build and Push
on:
push:
branches:
- 'main'
paths:
- 'apps/proompteng/**'
- 'apps/findbobastore/**'
jobs:
version:
runs-on: arc-arm64
outputs:
new_tag: ${{ steps.tag_version.outputs.new_tag }}
changelog: ${{ steps.tag_version.outputs.changelog }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
build-proompteng:
needs: version
uses: ./.github/workflows/docker-build-common.yaml
with:
image_name: proompteng
dockerfile: ./apps/proompteng/Dockerfile
context: .
new_tag: ${{ needs.version.outputs.new_tag }}
secrets:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
build-findbobastore:
needs: version
uses: ./.github/workflows/docker-build-common.yaml
with:
image_name: findbobastore
dockerfile: ./apps/findbobastore/Dockerfile
context: .
new_tag: ${{ needs.version.outputs.new_tag }}
secrets:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}