Another change

This commit is contained in:
Michael Green
2024-06-25 23:23:21 +10:00
parent de9b9bf706
commit 299e24793f

View File

@@ -34,76 +34,21 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
logout: false
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: |
gaseousgames/gaseousserver
ghcr.io/${{ github.repository }}
- name: Build and push standard Docker image
id: push
- name: Build and push standard image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
file: ./build/Dockerfile
- name: Build and push embedded mariadb Docker image
id: pushembedded
platforms: linux/amd64,linux/arm64
push: true
tags: |
gaseousgames/gaseousserver:${{ github.ref_name}}
- name: Build and push image with embedded mariadb
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
file: ./build/Dockerfile-EmbeddedDB
* name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
* name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.pushembedded.outputs.digest }}
push-to-registry: true
# - 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:${{ github.ref_name}}
# ghcr.io/${{ github.repository }}:${{ github.ref_name}}
# - 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:${{ github.ref_name}}-embeddeddb
# ghcr.io/${{ github.repository }}:${{ github.ref_name}}-embeddeddb
platforms: linux/amd64,linux/arm64
push: true
tags: |
gaseousgames/gaseousserver:${{ github.ref_name}}-embeddeddb