Skip to content

Commit c7b6233

Browse files
Build a docker image that includes an embedded MariaDB server (#373)
This PR modifies the build process to generate two docker images; the standard image, and one with MariaDB embedded into it for one click installs. This embedded MariaDB image is meant to support users on systems like Unraid that don't easily support docker-compose. Also; for users on Unraid, it will allow the creation of a single click install template to be submitted to the Unraid marketplace (this will be done at a later date after the release of 1.7.4).
1 parent afb72c3 commit c7b6233

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/BuildDockerOnTag-Prerelease.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ jobs:
3434
with:
3535
username: ${{ secrets.DOCKERHUB_USERNAME }}
3636
password: ${{ secrets.DOCKERHUB_TOKEN }}
37+
- name: Login to GitHub Package Registry
38+
uses: docker/login-action@v3
39+
with:
40+
registry: ghcr.io
41+
username: ${{ github.actor }}
42+
password: ${{ secrets.GITHUB_TOKEN }}
3743
- name: Build and push standard image
3844
uses: docker/build-push-action@v6
3945
with:
@@ -43,6 +49,7 @@ jobs:
4349
push: true
4450
tags: |
4551
gaseousgames/gaseousserver:${{ github.ref_name}}
52+
ghcr.io/gaseous-project/gaseousserver:${{ github.ref_name}}
4653
- name: Build and push image with embedded mariadb
4754
uses: docker/build-push-action@v6
4855
with:
@@ -52,3 +59,4 @@ jobs:
5259
push: true
5360
tags: |
5461
gaseousgames/gaseousserver:${{ github.ref_name}}-embeddeddb
62+
ghcr.io/gaseous-project/gaseousserver:${{ github.ref_name}}-embeddeddb

.github/workflows/BuildDockerOnTag-Release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
jobs:
99
docker:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
packages: write
13+
contents: read
14+
attestations: write
15+
id-token: write
1116
steps:
1217
- name: Checkout
1318
uses: actions/checkout@v4

0 commit comments

Comments
 (0)