Skip to content

Commit

Permalink
Update docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanieleroux authored Oct 10, 2024
1 parent 527a3f5 commit 4e3b578
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,39 @@ on:
schedule:
- cron: '0 0 1 */3 *'

name: Build Docker Container

on:
workflow_dispatch: # Allow manual trigger

jobs:
docker:
name: Build Docker container
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout the repo
uses: actions/checkout@v4

- name: Setup Docker buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Setup QEMU
uses: docker/setup-qemu-action@v3
with:
driver-opts: network=host
platforms: all

- name: Log into GitHub Container Repository
- 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 multi-platform image and push to ghcr
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
platforms: linux/arm64 # Mac M1/M2 chips only
platforms: linux/amd64,linux/arm64 # Multi-platform
push: true
no-cache: true
file: Dockerfiles/Dockerfile.devenv
file: Dockerfiles/Dockerfile
tags: ghcr.io/dream-gcm/dreamgcm-env:latest

0 comments on commit 4e3b578

Please sign in to comment.