Skip to content

build_base

build_base #135

name: Docker Base Image CI
on:
push:
branches: [ "base" ]
repository_dispatch:
types: [ build_base ]
jobs:
build:
runs-on: self-hosted
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
# Step 1: Checkout the repository
- name: Checkout Code
uses: actions/checkout@v4
# Step 2: Log in to GitHub Container Registry
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Step 4: Build and Push Docker Image
- name: Build and Push Docker Image
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.base
push: true
tags: ghcr.io/psal-postech/torchsim_base:latest