Skip to content

Build Docker Container #13

Build Docker Container

Build Docker Container #13

Workflow file for this run

name: Build Docker Container
on:
workflow_dispatch: # Allow manual trigger
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
install: true
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image (multi-platform)
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: linux/amd64,linux/arm64 # Enable multi-platform builds
file: Dockerfiles/Dockerfile.devenv # Path to your Dockerfile
tags: ghcr.io/dream-gcm/dreamgcm-env:latest