forked from juspay/hyperswitch
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.7 KB
/
auto-release-tag.yml
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
57
58
59
name: Release SemVer tag
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASSWD }}
- name: Build and push router Docker image
uses: docker/build-push-action@v4
with:
build-args: |
BINARY=router
context: .
push: true
tags: juspaydotin/orca:${{ github.ref_name }}, juspaydotin/hyperswitch-router:${{ github.ref_name }}
- name: Build and push consumer Docker image
uses: docker/build-push-action@v4
with:
build-args: |
BINARY=scheduler
SCHEDULER_FLOW=consumer
context: .
push: true
tags: juspaydotin/orca-consumer:${{ github.ref_name }}, juspaydotin/hyperswitch-consumer:${{ github.ref_name }}
- name: Build and push producer Docker image
uses: docker/build-push-action@v4
with:
build-args: |
BINARY=scheduler
SCHEDULER_FLOW=producer
context: .
push: true
tags: juspaydotin/orca-producer:${{ github.ref_name }}, juspaydotin/hyperswitch-producer:${{ github.ref_name }}
- name: Build and push drainer Docker image
uses: docker/build-push-action@v4
with:
build-args: |
BINARY=drainer
context: .
push: true
tags: juspaydotin/orca:drainer-${{ github.ref_name }}, juspaydotin/hyperswitch-drainer:${{ github.ref_name }}