-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.05 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: DREAM-env Docker build
on:
push:
branches:
- main
# Build the Docker container at 00:00 on the first day of every 3 months
schedule:
- cron: '0 0 1 */3 *'
jobs:
docker:
name: Build Docker container
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host
- name: Log into GitHub Container Repository
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
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64 # Adding multiple platforms
push: true
no-cache: true
file: Dockerfiles/Dockerfile.devenv
tags: ghcr.io/dream-gcm/dreamgcm-env:latest