Skip to content

INativeBridge insuranceBudgetDivider #115

INativeBridge insuranceBudgetDivider

INativeBridge insuranceBudgetDivider #115

name: Build Push Containers
on:
pull_request:
types:
- labeled
- opened
- synchronize
push:
branches:
- '**'
jobs:
hsm-demo-build:
if: github.event.label.name == 'cicd:hsm-demo-containers' || github.ref == 'refs/heads/main'
permissions:
contents: read
packages: write
strategy:
matrix:
architecture: [x86_64, arm64]
runs-on: ${{ matrix.architecture == 'x86_64' && 'buildjet-8vcpu-ubuntu-2204' || 'buildjet-8vcpu-ubuntu-2204-arm' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
ref: ${{ github.event.pull_request.head.ref || github.ref }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Docker Hub to Avoid Rate Limiting
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and Push Docker image movement
run: |
./scripts/movement/build-push-image hsm-demo
hsm-demo-manifest:
permissions:
contents: read
packages: write
needs: hsm-demo-build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
ref: ${{ github.event.pull_request.head.ref || github.ref }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Docker Hub to Avoid Rate Limiting
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and Push Docker image movement
run: |
./scripts/movement/manifest hsm-demo