Skip to content

Commit 9078b3a

Browse files
committed
Add CI for Price-feeder
1 parent 1031572 commit 9078b3a

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Price Feeder Docker Release
2+
on:
3+
push:
4+
tags:
5+
- "price-feeder/v*.*.*"
6+
pull_request:
7+
8+
9+
jobs:
10+
price-feeder-docker:
11+
name: price-feeder Docker
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: checkout
15+
uses: actions/checkout@v3
16+
17+
- name: Set up QEMU
18+
uses: docker/setup-qemu-action@v2
19+
20+
- name: Docker meta
21+
id: meta
22+
uses: docker/metadata-action@v4
23+
with:
24+
images: ghcr.io/cosmoscontracts/price-feeder
25+
tags:
26+
type=semver,pattern=v{{version}}
27+
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v2
30+
31+
- name: Login to GHCR
32+
uses: docker/login-action@v2
33+
with:
34+
registry: ghcr.io
35+
username: ${{ github.repository_owner }}
36+
password: ${{ secrets.GITHUB_TOKEN }}
37+
38+
- name: Build and push
39+
uses: docker/build-push-action@v3
40+
with:
41+
context: .
42+
file: price-feeder/price-feeder.Dockerfile
43+
push: true
44+
tags: ${{ steps.meta.outputs.tags }}
45+
labels: ${{ steps.meta.outputs.labels }}
File renamed without changes.

0 commit comments

Comments
 (0)