From 2d63a1c41671962e8c7411e5705959c997f47580 Mon Sep 17 00:00:00 2001 From: Michael Green <84688932+michael-j-green@users.noreply.github.com> Date: Sat, 26 Oct 2024 20:10:11 +1100 Subject: [PATCH] Nightly build (#450) --- .github/workflows/BuildNightly.yml | 61 ++++++++++++++++++++++++++++++ README.MD | 2 +- 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/BuildNightly.yml diff --git a/.github/workflows/BuildNightly.yml b/.github/workflows/BuildNightly.yml new file mode 100644 index 00000000..40abc630 --- /dev/null +++ b/.github/workflows/BuildNightly.yml @@ -0,0 +1,61 @@ +name: Build Nightly Docker Image + +on: + schedule: + - cron: '15 4 * * *' + workflow_dispatch: + +jobs: + docker: + runs-on: ubuntu-latest + permissions: + packages: write + contents: read + attestations: write + id-token: write + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: 'true' + - name: Install dotnet tool + run: dotnet tool install -g dotnetCampus.TagToVersion + - name: Set tag to version + run: dotnet TagToVersion -t 0.0.0-nightly + - name: Sign in to Nuget + run: dotnet nuget add source --username michael-j-green --password ${{ secrets.NUGETKEY }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/gaseous-project/index.json" + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 + 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: + context: . + file: ./build/Dockerfile + platforms: linux/amd64,linux/arm64 + push: true + tags: | + gaseousgames/gaseousserver:nightly + ghcr.io/gaseous-project/gaseousserver:nightly + - name: Build and push image with embedded mariadb + uses: docker/build-push-action@v6 + with: + context: . + file: ./build/Dockerfile-EmbeddedDB + platforms: linux/amd64,linux/arm64 + push: true + tags: | + gaseousgames/gaseousserver:nightly-embeddeddb + ghcr.io/gaseous-project/gaseousserver:nightly-embeddeddb \ No newline at end of file diff --git a/README.MD b/README.MD index 8a4e346e..918fc5c6 100644 --- a/README.MD +++ b/README.MD @@ -1,4 +1,4 @@ -[![.NET](https://github.com/gaseous-project/gaseous-server/actions/workflows/dotnet.yml/badge.svg)](https://github.com/gaseous-project/gaseous-server/actions/workflows/dotnet.yml) [![Build Release Docker Image](https://github.com/gaseous-project/gaseous-server/actions/workflows/BuildDockerOnTag-Release.yml/badge.svg)](https://github.com/gaseous-project/gaseous-server/actions/workflows/BuildDockerOnTag-Release.yml) +[![.NET](https://github.com/gaseous-project/gaseous-server/actions/workflows/dotnet.yml/badge.svg)](https://github.com/gaseous-project/gaseous-server/actions/workflows/dotnet.yml) [![Nightly](https://github.com/gaseous-project/gaseous-server/actions/workflows/BuildNightly.yml/badge.svg)](https://github.com/gaseous-project/gaseous-server/actions/workflows/BuildNightly.yml) [![Build Release Docker Image](https://github.com/gaseous-project/gaseous-server/actions/workflows/BuildDockerOnTag-Release.yml/badge.svg)](https://github.com/gaseous-project/gaseous-server/actions/workflows/BuildDockerOnTag-Release.yml) # Gaseous Server This is the server for the Gaseous system. It offers ROM and title management, as well as some basic in browser emulation of those ROMs.