Skip to content

ci(build): add docker builds workflow #18

ci(build): add docker builds workflow

ci(build): add docker builds workflow #18

Workflow file for this run

name: Build Docker Image
on:
push:
tags:
- "*"
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get version
id: get_version
uses: battila7/get-version-action@v2
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
file: Dockerfile.release
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/nibiruchain/tmkms:${{ steps.get_version.outputs.version-without-v }}