Skip to content

Fix readme env (#72) #12

Fix readme env (#72)

Fix readme env (#72) #12

name: Release Integration Environment
on:
push:
branches: [ main ]
workflow_dispatch:
inputs:
version:
description: "Release tag:"
type: string
required: true
env:
OWNER: hashgraph
REGISTRY: ghcr.io
jobs:
docker-image-publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Get tag
run: |
if [[ -v "${{ github.event.inputs.version }}" ]]; then
echo "TAG=${{ github.event.inputs.version }}" >> $GITHUB_ENV
else
echo "TAG=main" >> $GITHUB_ENV
fi
- name: Patch h5ai-nginx submodule
run: ./scripts/hedera-apply-h5ai-nginx-patch.sh
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Qemu
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push UI image
uses: docker/build-push-action@v2
with:
context: ./ui
file: ./ui/Dockerfile
platforms: linux/amd64, linux/arm64
build-args: |
SERVER_URL=http://localhost:5002
REPOSITORY_SERVER_URL=http://localhost:10000
TAG=${{env.TAG}}
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository }}:ui-${{env.TAG}}
- name: Build and push SERVER image
uses: docker/build-push-action@v2
with:
context: .
file: ./src/Dockerfile.server
platforms: linux/amd64
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository }}:server-${{env.TAG}}
- name: Build and Push REPOSITORY Image
uses: docker/build-push-action@v2
with:
context: ./h5ai-nginx
file: ./h5ai-nginx/Dockerfile
platforms: linux/amd64
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository }}:repository-${{env.TAG}}