-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (86 loc) · 2.96 KB
/
build-main.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Build Versioned Images
on:
push:
branches:
- main
paths:
- "build/**"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- tag: >
soupbowl/opensimulator:0.9.2.0,
ghcr.io/soup-bowl/opensimulator-docker:0.9.2.0,
version: "0.9.2.0"
folder: build/latest
file: Dockerfile.mono
platforms: linux/amd64,linux/arm64
sha1: 584966ef6029f21dc842a7f55f6f117b3a0b0321
- tag: >
soupbowl/opensimulator:0.9.2.1,
ghcr.io/soup-bowl/opensimulator-docker:0.9.2.1,
version: "0.9.2.1"
folder: build/latest
file: Dockerfile.mono
platforms: linux/amd64,linux/arm64
sha1: c5d2e690a7739fa9c0651845b31d912f88d6fa22
- tag: >
soupbowl/opensimulator:0.9.2,
soupbowl/opensimulator:0.9.2.2,
ghcr.io/soup-bowl/opensimulator-docker:0.9.2,
ghcr.io/soup-bowl/opensimulator-docker:0.9.2.2,
version: "0.9.2.2"
folder: build/latest
file: Dockerfile.mono
platforms: linux/amd64,linux/arm64
sha1: b280d109cf04755a02db1c729af5a5e4160d1ce6
- tag: >
soupbowl/opensimulator:latest,
soupbowl/opensimulator:0.9,
soupbowl/opensimulator:0.9.3,
soupbowl/opensimulator:0.9.3.0,
ghcr.io/soup-bowl/opensimulator-docker:latest,
ghcr.io/soup-bowl/opensimulator-docker:0.9,
ghcr.io/soup-bowl/opensimulator-docker:0.9.3,
ghcr.io/soup-bowl/opensimulator-docker:0.9.3.0,
version: "0.9.3.0"
folder: build/latest
file: Dockerfile
platforms: linux/amd64,linux/arm64
sha1: a4bcd861626195af80cc1f962d3a2f4528859ad2
steps:
- name: Checkout Codebase
uses: actions/checkout@v4
- name: Login to GitHub CR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.CR_PAT }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_SECRET }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Build Container
uses: docker/build-push-action@v5
with:
push: true
context: "{{defaultContext}}:${{ matrix.folder }}"
tags: ${{ matrix.tag }}
platforms: ${{ matrix.platforms }}
file: "${{ matrix.file }}"
build-args: |
OPENSIM_VERSION=${{ matrix.version }}
OPENSIM_SHA1=${{ matrix.sha1 }}
cache-from: type=gha
cache-to: type=gha,mode=max