-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (36 loc) · 1.32 KB
/
release.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
name: Build release
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
ref: ${{github.event.release.tag_name}}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: [API] Build and push Docker image
uses: docker/build-push-action@v4
with:
file: ./api/Dockerfile
tags: cardanofoundation/cardano-rosetta-java-api:${{github.event.release.tag_name}},cardanofoundation/cardano-rosetta-java-api:latest
push: true
- name: [Indexer] Build and push Docker image
uses: docker/build-push-action@v4
with:
file: ./yaci-indexer/Dockerfile
tags: cardanofoundation/cardano-rosetta-java-indexer:${{github.event.release.tag_name}},cardanofoundation/cardano-rosetta-java-indexer:latest
push: true
# TODO will be added when the all-in-one image is ready
# - name: [All-in-one] Build and push Docker image
# uses: docker/build-push-action@v4
# with:
# file: ./Dockerfile
# tags: cardanofoundation/cardano-rosetta-java:${{github.event.release.tag_name}}
# push: true