-
Notifications
You must be signed in to change notification settings - Fork 5
91 lines (80 loc) · 3.02 KB
/
ci.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Build Release CI
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set output
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: Docker Login
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAYIO_USERNAME }}
password: ${{ secrets.QUAYIO_PASSWORD }}
- name: Docker Buildx Argo workflow
env:
DOCKERIO_ORG: quay.io/numaio
PLATFORM: linux/x86_64
TARGET: numaflow-sink/argo-workflow
run: |
tag=$(basename $GITHUB_REF)
if [ $tag = "master" ]; then
tag="latest"
fi
image_name="${DOCKERIO_ORG}/numaflow-sink/argo-workflow:${tag}"
cd argo-workflow
docker buildx build \
--output "type=image,push=true" \
--platform="${PLATFORM}" \
--tag $image_name .
- name: Docker Buildx HTTP Sink
env:
DOCKERIO_ORG: quay.io/numaio
PLATFORM: linux/x86_64
run: |
tag=$(basename $GITHUB_REF)
if [ $tag = "master" ]; then
tag="latest"
fi
image_name="${DOCKERIO_ORG}/numaflow-sink/http-sink:${tag}"
cd http-sink
docker buildx build \
--output "type=image,push=true" \
--platform="${PLATFORM}" \
--tag $image_name .
- name: Docker Buildx Prometheus-pusher
env:
DOCKERIO_ORG: quay.io/numaio
PLATFORM: linux/x86_64
run: |
tag=$(basename $GITHUB_REF)
if [ $tag = "master" ]; then
tag="latest"
fi
image_name="${DOCKERIO_ORG}/numaflow-sink/prometheus-pusher:${tag}"
cd prometheus-pusher
docker buildx build \
--output "type=image,push=true" \
--platform="${PLATFORM}" \
--tag $image_name .
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
# ${{ steps.vars.outputs.tag }} has been released.
**Argo-workflow** : [quay.io/numaio/numaflow-sink/argo-workflow:${{ steps.vars.outputs.tag }}](https://quay.io/repository/numaio/numaflow-sink/argo-workflow)
**HTTP-sink** : [quay.io/numaio/numaflow-sink/http-sink:${{ steps.vars.outputs.tag }}](https://quay.io/repository/numaio/numaflow-sink/http-sink)
**Prometheus-Pusher**: [quay.io/numaio/numaflow-sink/prometheus-pusher:${{ steps.vars.outputs.tag }}](https://quay.io/repository/numaio/numaflow-sink/prometheus-pusher)
draft: false
prerelease: false