Skip to content

add fileSize to record #2

add fileSize to record

add fileSize to record #2

Workflow file for this run

name: Build Container
on:
push:
branches: [main]
paths:
- 'container/**'
- 'src/**'
pull_request:
branches: [main]
paths:
- 'container/**'
- 'src/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push container image
uses: docker/build-push-action@v6
with:
context: .
file: container/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/${{ github.repository }}:latest
build-args: |
GIT_COMMIT=${{ github.sha }}