Skip to content

🛋️

🛋️ #1

Workflow file for this run

name: Build
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
paths:
- 'Dockerfile'
- '.github/**'
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Parse version from tag
id: parse
run: echo "$VERSION={GITHUB_REF_NAME:1}" >> "$GITHUB_OUTPUT" # removes the 'v' prefix
- name: Build and push
uses: docker/build-push-action@v6
with:
tags: |
docker.io/fnndsc/hasura-cli:${{ steps.parse.outputs.VERSION }}
docker.io/fnndsc/hasura-cli:latest
ghcr.io/fnndsc/hasura-cli:${{ steps.parse.outputs.VERSION }}
ghcr.io/fnndsc/hasura-cli:latest
platforms: linux/amd64,linux/arm64
build-args: VERSION=${{ github.ref_name }}
push: true
dockerhub-description:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Update DockerHub description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
short-description: Hasura CLI
readme-filepath: ./README