Skip to content

feat: add proxy inside container #9

feat: add proxy inside container

feat: add proxy inside container #9

Workflow file for this run

# .github/workflows/docker.yml
name: "Build and Push Docker Image"
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
env:
REGISTRY: "ghcr.io"
IMAGE_NAME: "katanacap/hyperliquid-node"
jobs:
build:
runs-on: "ubuntu-latest"
permissions:
contents: "read"
packages: "write"
id-token: "write"
attestations: "write"
strategy:
matrix:
include:
- network: "Mainnet"
tag: "mainnet"
- network: "Testnet"
tag: "testnet"
steps:
- name: "Checkout repository"
uses: "actions/checkout@v4"
with:
filter: "tree:0"
- name: "Set up Docker Buildx"
uses: "docker/setup-buildx-action@v3"
- name: "Log in to Container Registry"
if: "${{ github.event_name != 'pull_request' }}"
uses: "docker/login-action@v3"
with:
registry: "${{ env.REGISTRY }}"
username: "${{ github.actor }}"
password: "${{ secrets.GITHUB_TOKEN }}"
- name: "Build and push Docker image"
id: "build"
uses: "docker/build-push-action@v6"
with:
context: "."
push: "${{ github.event_name != 'pull_request' }}"
tags: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.tag }}"
cache-from: "type=gha"
cache-to: "type=gha,mode=max"
build-args: |
NETWORK=${{ matrix.network }}
- name: "Generate artifact attestation"
if: "${{ github.event_name != 'pull_request' }}"
uses: "actions/attest-build-provenance@v2"
with:
subject-name: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
subject-digest: "${{ steps.build.outputs.digest }}"
push-to-registry: true