Skip to content

Blockcore Indexer (Release 0.2.66) #74

Blockcore Indexer (Release 0.2.66)

Blockcore Indexer (Release 0.2.66) #74

Workflow file for this run

name: Build and Release Docker Image
on:
release:
types: [published, prereleased]
jobs:
build:
name: Build and Push
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
8.0.x
- name: Log Variables
run: |
echo "action - ${{ github.event.action }}"
echo "url - ${{ github.event.release.url }}"
echo "assets_url - ${{ github.event.release.assets_url }}"
echo "id - ${{ github.event.release.id }}"
echo "tag_name - ${{ github.event.release.tag_name }}"
echo "assets - ${{ github.event.assets }}"
echo "assets[0] - ${{ github.event.assets[0] }}"
- uses: cschleiden/replace-tokens@v1
with:
files: '["**/Dockerfile.Release"]'
env:
VERSION: ${{ github.event.release.tag_name }}
- name: Build the Docker container image for Blockcore Indexer
run: docker build -f "./src/Blockcore.Indexer/Dockerfile.Release" -t blockcore/indexer:latest -t blockcore/indexer:${{ github.event.release.tag_name }} --label "unstable=true" "."
- name: Build the Docker container image for Cirrus Indexer
run: docker build -f "./src/Blockcore.Indexer.Cirrus/Dockerfile.Release" -t blockcore/indexer-crs:latest -t blockcore/indexer-crs:${{ github.event.release.tag_name }} --label "unstable=true" "."
- name: Build the Docker container image for Angor Indexer
run: docker build -f "./src/Blockcore.Indexer.Angor/Dockerfile.Release" -t blockcore/indexer-angor:latest -t blockcore/indexer-angor:${{ github.event.release.tag_name }} --label "unstable=true" "."
- name: Login and Push to Docker Registry
run: |
docker login -u "sondreb" -p "${{secrets.DockerHubSecret}}"
docker push --all-tags blockcore/indexer
docker push --all-tags blockcore/indexer-crs
docker push --all-tags blockcore/indexer-angor
# - name: Login and Push to GitHub Docker Registry
# run: |
# docker login docker.pkg.github.com -u "blockcore-indexer" -p "${{secrets.GITHUB_TOKEN}}"
# docker push docker.pkg.github.com/block-core/blockcore-indexer/blockcoreindexer:latest