Skip to content

Cardano Rosetta 2.4.1 #41

Cardano Rosetta 2.4.1

Cardano Rosetta 2.4.1 #41

Workflow file for this run

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