From 822a40b61b3e9ce3765aac5ef842a9dcc672db9b Mon Sep 17 00:00:00 2001 From: Michael Green <84688932+michael-j-green@users.noreply.github.com> Date: Sat, 29 Jun 2024 22:55:50 +1000 Subject: [PATCH] Workflows updated to push Docker images to GitHub --- .github/workflows/BuildDockerOnTag-Release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/BuildDockerOnTag-Release.yml b/.github/workflows/BuildDockerOnTag-Release.yml index 71ca7a5..118ce75 100644 --- a/.github/workflows/BuildDockerOnTag-Release.yml +++ b/.github/workflows/BuildDockerOnTag-Release.yml @@ -33,6 +33,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,8 @@ jobs: tags: | gaseousgames/gaseousserver:latest gaseousgames/gaseousserver:${{ github.ref_name}} + ghcr.io/gaseous-project/gaseousserver:latest + 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 +60,4 @@ jobs: push: true tags: | gaseousgames/gaseousserver:${{ github.ref_name}}-embeddeddb + ghcr.io/gaseous-project/gaseousserver:${{ github.ref_name}}-embeddeddb