mirror of
https://github.com/soup-bowl/opensimulator-docker.git
synced 2026-07-30 19:49:06 +00:00
106 lines
3.5 KiB
YAML
106 lines
3.5 KiB
YAML
name: Build Versioned Images
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "build/**"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- version: "0.9.2.0"
|
|
tag: >
|
|
soupbowl/opensimulator:0.9.2.0,
|
|
ghcr.io/soup-bowl/opensimulator-docker:0.9.2.0,
|
|
folder: build/latest
|
|
file: Dockerfile.mono
|
|
platforms: linux/amd64,linux/arm64
|
|
sha1: 584966ef6029f21dc842a7f55f6f117b3a0b0321
|
|
- version: "0.9.2.1"
|
|
tag: >
|
|
soupbowl/opensimulator:0.9.2.1,
|
|
ghcr.io/soup-bowl/opensimulator-docker:0.9.2.1,
|
|
folder: build/latest
|
|
file: Dockerfile.mono
|
|
platforms: linux/amd64,linux/arm64
|
|
sha1: c5d2e690a7739fa9c0651845b31d912f88d6fa22
|
|
- version: "0.9.2.2"
|
|
tag: >
|
|
soupbowl/opensimulator:0.9.2,
|
|
soupbowl/opensimulator:0.9.2.2,
|
|
ghcr.io/soup-bowl/opensimulator-docker:0.9.2,
|
|
ghcr.io/soup-bowl/opensimulator-docker:0.9.2.2,
|
|
folder: build/latest
|
|
file: Dockerfile.mono
|
|
platforms: linux/amd64,linux/arm64
|
|
sha1: b280d109cf04755a02db1c729af5a5e4160d1ce6
|
|
- version: "0.9.3.0"
|
|
tag: >
|
|
soupbowl/opensimulator:latest,
|
|
soupbowl/opensimulator:0.9,
|
|
soupbowl/opensimulator:0.9.3,
|
|
soupbowl/opensimulator:0.9.3.0,
|
|
ghcr.io/soup-bowl/opensimulator-docker:latest,
|
|
ghcr.io/soup-bowl/opensimulator-docker:0.9,
|
|
ghcr.io/soup-bowl/opensimulator-docker:0.9.3,
|
|
ghcr.io/soup-bowl/opensimulator-docker:0.9.3.0,
|
|
folder: build/latest
|
|
file: Dockerfile
|
|
platforms: linux/amd64,linux/arm64
|
|
sha1: a4bcd861626195af80cc1f962d3a2f4528859ad2
|
|
- version: "0.9.3.0"
|
|
tag: >
|
|
soupbowl/opensimulator:0.9.3-noscreen,
|
|
soupbowl/opensimulator:0.9.3.0-noscreen,
|
|
ghcr.io/soup-bowl/opensimulator-docker:0.9.3-noscreen,
|
|
ghcr.io/soup-bowl/opensimulator-docker:0.9.3.0-noscreen,
|
|
folder: build/latest
|
|
file: Dockerfile.noscreen
|
|
platforms: linux/amd64,linux/arm64
|
|
sha1: a4bcd861626195af80cc1f962d3a2f4528859ad2
|
|
|
|
steps:
|
|
- name: Checkout Codebase
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Login to GitHub CR
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.CR_PAT }}
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKER_USER }}
|
|
password: ${{ secrets.DOCKER_SECRET }}
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Build Container
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
push: true
|
|
context: "{{defaultContext}}:${{ matrix.folder }}"
|
|
tags: ${{ matrix.tag }}
|
|
platforms: ${{ matrix.platforms }}
|
|
file: "${{ matrix.file }}"
|
|
build-args: |
|
|
OPENSIM_VERSION=${{ matrix.version }}
|
|
OPENSIM_SHA1=${{ matrix.sha1 }}
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|