Skip to content

Add getValidityProof endpoint documentation (#101) #5

Add getValidityProof endpoint documentation (#101)

Add getValidityProof endpoint documentation (#101) #5

name: Publish Dockerfile
on:
push:
branches:
- main
jobs:
build:
runs-on: buildjet-16vcpu-ubuntu-2204
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract short SHA
id: shortsha
run: echo "SHORT_SHA=$(echo $GITHUB_SHA | cut -c 1-8)" >> $GITHUB_ENV
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/photon:latest
${{ secrets.DOCKERHUB_USERNAME }}/photon:${{ env.SHORT_SHA }}