-
Notifications
You must be signed in to change notification settings - Fork 3
103 lines (96 loc) · 2.57 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
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
95
96
97
98
99
100
101
102
103
name: Build and Push Docker Images
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
godot_version: [
# Unsupported versions (for now)
# The double commented out versions seem to not be working
# https://github.com/rivet-gg/godot-docker/issues/2
# Full list of versions available here: https://godotengine.org/download/archive/
# # "2.0",
# # "2.0.1",
# # "2.0.2",
# # "2.0.3",
# # "2.0.4.1",
# "2.1",
# "2.1.1",
# "2.1.2",
# "2.1.3",
# "2.1.4",
# "2.1.5",
# "2.1.6",
# # "2.1.7",
# # "3.0",
# # "3.0.1",
# # "3.0.2",
# # "3.0.3",
# # "3.0.4",
# # "3.0.5",
# "3.0.6",
# "3.1",
# "3.1.1",
# "3.1.2",
# "3.2",
# "3.2.1",
# "3.2.2",
# "3.2.3",
# # "3.2.4",
# "3.3",
# "3.3.1",
# "3.3.2",
# "3.3.3",
# "3.3.4",
# "3.4",
# "3.4.1",
# "3.4.2",
# "3.4.3",
# "3.4.4",
# "3.4.5",
# "3.5",
# "3.5.1",
# "3.5.2",
# "3.5.3",
# # "3.6",
# "4.0",
# "4.0.1",
# "4.0.2",
# "4.0.3",
# "4.0.4",
# "4.1",
# "4.1.1",
# "4.1.2",
# "4.1.3",
# Supported versions with plugin
"4.2",
"4.2.1",
"4.2.2",
]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: rivetgg/godot:${{ matrix.godot_version }}
build-args: |
GODOT_VERSION=${{ matrix.godot_version }}