-
Notifications
You must be signed in to change notification settings - Fork 50
73 lines (66 loc) · 3.12 KB
/
post_integration.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
73
name: Post-integration
on:
push:
branches:
- master
jobs:
push-docker-build:
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.sha }}
- name: Build Cardano Rosetta - preprod
uses: ./.github/actions/build_cardano_rosetta
with:
build-cache-image: cardano-rosetta:${{ github.sha }}
build-context: ${{ github.workspace }}
network-identifier: preprod
tag: ${{ github.sha }}-preprod
- name: Build Cardano Rosetta - preview
uses: ./.github/actions/build_cardano_rosetta
with:
build-cache-image: cardano-rosetta:${{ github.sha }}
build-context: ${{ github.workspace }}
network-identifier: preview
tag: ${{ github.sha }}-preview
- name: Build Cardano Rosetta - sanchonet
uses: ./.github/actions/build_cardano_rosetta
with:
build-cache-image: cardano-rosetta:${{ github.sha }}
build-context: ${{ github.workspace }}
network-identifier: sanchonet
tag: ${{ github.sha }}-sanchonet
- name: Postman Tests
uses: ./.github/actions/postman_tests_cardano_rosetta
with:
tag: ${{ github.sha }}
- name: Apply master tag
run: |
docker tag cardano-rosetta:${{ github.sha }} cardanofoundation/cardano-rosetta:${{ github.sha }}
docker tag cardano-rosetta:${{ github.sha }} cardanofoundation/cardano-rosetta:master
docker tag cardano-rosetta:${{ github.sha }}-preprod cardanofoundation/cardano-rosetta:${{ github.sha }}-preprod
docker tag cardano-rosetta:${{ github.sha }}-preprod cardanofoundation/cardano-rosetta:master-preprod
docker tag cardano-rosetta:${{ github.sha }}-preview cardanofoundation/cardano-rosetta:${{ github.sha }}-preview
docker tag cardano-rosetta:${{ github.sha }}-preview cardanofoundation/cardano-rosetta:master-preview
docker tag cardano-rosetta:${{ github.sha }}-sanchonet cardanofoundation/cardano-rosetta:${{ github.sha }}-sanchonet
docker tag cardano-rosetta:${{ github.sha }}-sanchonet cardanofoundation/cardano-rosetta:master-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.sha }}
docker push cardanofoundation/cardano-rosetta:master
docker push cardanofoundation/cardano-rosetta:${{ github.sha }}-preprod
docker push cardanofoundation/cardano-rosetta:master-preprod
docker push cardanofoundation/cardano-rosetta:${{ github.sha }}-preview
docker push cardanofoundation/cardano-rosetta:master-preview