-
Notifications
You must be signed in to change notification settings - Fork 49
72 lines (63 loc) · 3.17 KB
/
post_release.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
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Post-release
on:
release:
types:
- published
jobs:
build-and-push-release-builds:
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Free Diskspace
uses: ./.github/actions/free_disk_space
- name: Build Cardano Rosetta - mainnet
uses: ./.github/actions/build_cardano_rosetta
with:
build-context: ${{ github.workspace }}
tag: ${{ github.event.release.tag_name }}
- name: Build Cardano Rosetta - preprod
uses: ./.github/actions/build_cardano_rosetta
with:
build-cache-image: cardano-rosetta:${{ github.event.release.tag_name }}
build-context: ${{ github.workspace }}
network-identifier: preprod
tag: ${{ github.event.release.tag_name }}-preprod
- name: Build Cardano Rosetta - preview
uses: ./.github/actions/build_cardano_rosetta
with:
build-cache-image: cardano-rosetta:${{ github.event.release.tag_name }}
build-context: ${{ github.workspace }}
network-identifier: preview
tag: ${{ github.event.release.tag_name }}-preview
- name: Build Cardano Rosetta - sanchonet
uses: ./.github/actions/build_cardano_rosetta
with:
build-cache-image: cardano-rosetta:${{ github.event.release.tag_name }}
build-context: ${{ github.workspace }}
network-identifier: sanchonet
db-sync-version: sancho-4-0-0
tag: ${{ github.event.release.tag_name }}-sanchonet
- name: Postman Tests
uses: ./.github/actions/postman_tests_cardano_rosetta
with:
tag: ${{ github.event.release.tag_name }}
- name: Apply latest tag
run: |
docker tag cardano-rosetta:${{ github.event.release.tag_name }} cardanofoundation/cardano-rosetta:${{ github.event.release.tag_name }}
docker tag cardano-rosetta:${{ github.event.release.tag_name }} cardanofoundation/cardano-rosetta:latest
docker tag cardano-rosetta:${{ github.event.release.tag_name }}-preprod cardanofoundation/cardano-rosetta:${{ github.event.release.tag_name }}-preprod
docker tag cardano-rosetta:${{ github.event.release.tag_name }}-preview cardanofoundation/cardano-rosetta:${{ github.event.release.tag_name }}-preview
docker tag cardano-rosetta:${{ github.event.release.tag_name }}-sanchonet cardanofoundation/cardano-rosetta:${{ github.event.release.tag_name }}-sanchonet
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Push to Docker Hub
run: |
docker push cardanofoundation/cardano-rosetta:${{ github.event.release.tag_name }}
docker push cardanofoundation/cardano-rosetta:latest
docker push cardanofoundation/cardano-rosetta:${{ github.event.release.tag_name }}-preprod
docker push cardanofoundation/cardano-rosetta:${{ github.event.release.tag_name }}-preview
docker push cardanofoundation/cardano-rosetta:${{ github.event.release.tag_name }}-sanchonet