Workflows updated to push Docker images to GitHub

This commit is contained in:
Michael Green
2024-06-29 22:55:50 +10:00
parent b463bb6064
commit 822a40b61b

View File

@@ -33,6 +33,12 @@ jobs:
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} 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 - name: Build and push standard image
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
@@ -43,6 +49,8 @@ jobs:
tags: | tags: |
gaseousgames/gaseousserver:latest gaseousgames/gaseousserver:latest
gaseousgames/gaseousserver:${{ github.ref_name}} 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 - name: Build and push image with embedded mariadb
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
@@ -52,3 +60,4 @@ jobs:
push: true push: true
tags: | tags: |
gaseousgames/gaseousserver:${{ github.ref_name}}-embeddeddb gaseousgames/gaseousserver:${{ github.ref_name}}-embeddeddb
ghcr.io/gaseous-project/gaseousserver:${{ github.ref_name}}-embeddeddb