feat: added release build pipeline #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |