From c7b6233ad69a3f591b5260fcc7f40a9d9cfae5d1 Mon Sep 17 00:00:00 2001 From: Michael Green <84688932+michael-j-green@users.noreply.github.com> Date: Wed, 26 Jun 2024 06:02:20 +1000 Subject: [PATCH] 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). --- .github/workflows/BuildDockerOnTag-Prerelease.yml | 8 ++++++++ .github/workflows/BuildDockerOnTag-Release.yml | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/BuildDockerOnTag-Prerelease.yml b/.github/workflows/BuildDockerOnTag-Prerelease.yml index 3f54009..963aae5 100644 --- a/.github/workflows/BuildDockerOnTag-Prerelease.yml +++ b/.github/workflows/BuildDockerOnTag-Prerelease.yml @@ -34,6 +34,12 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to GitHub Package Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push standard image uses: docker/build-push-action@v6 with: @@ -43,6 +49,7 @@ jobs: push: true tags: | gaseousgames/gaseousserver:${{ github.ref_name}} + ghcr.io/gaseous-project/gaseousserver:${{ github.ref_name}} - name: Build and push image with embedded mariadb uses: docker/build-push-action@v6 with: @@ -52,3 +59,4 @@ jobs: push: true tags: | gaseousgames/gaseousserver:${{ github.ref_name}}-embeddeddb + ghcr.io/gaseous-project/gaseousserver:${{ github.ref_name}}-embeddeddb diff --git a/.github/workflows/BuildDockerOnTag-Release.yml b/.github/workflows/BuildDockerOnTag-Release.yml index 1e24de6..71ca7a5 100644 --- a/.github/workflows/BuildDockerOnTag-Release.yml +++ b/.github/workflows/BuildDockerOnTag-Release.yml @@ -8,6 +8,11 @@ on: jobs: docker: runs-on: ubuntu-latest + permissions: + packages: write + contents: read + attestations: write + id-token: write steps: - name: Checkout uses: actions/checkout@v4