Skip to content

Add github ci actions to build binaries and docker image #8

Add github ci actions to build binaries and docker image

Add github ci actions to build binaries and docker image #8

Workflow file for this run

on:
push:
tags:
- 'v*'
name: Build And Push Docker Image
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
platforms: linux/amd64,linux/arm64
context: .
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.ref }}