Skip to content

15: Release

15: Release #99

Workflow file for this run

name: CI
on: [push, pull_request]
env:
dockerid: ${{ secrets.dockerid }}
dockerpass: ${{ secrets.dockerpass }}
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Remember if you commit this, newly built images will replace those tags.
# Prefer incrementing the version to unused one
tag: [15-android, 15-jammy, 15-jammy32, 15-noble, 15-noble32, 15-bookworm, 15-format, 15-mingw]
env:
dockertag: ${{ matrix.tag }}
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Build docker image
run: |
ctxpath=${dockertag//-/\/}
docker build -t openrct2/openrct2-build:$dockertag $ctxpath
- name: Publish docker image
run: |
if [ "$dockerid" != "" ]; then
docker login -u "$dockerid" -p "$dockerpass"
docker push openrct2/openrct2-build:$dockertag
else
echo 'Image not pushed'
fi
tag:
name: Tag images
needs: build
runs-on: ubuntu-latest
steps:
- name: Tag docker images
run: |
if [ "$dockerid" != "" ]; then
docker login -u "$dockerid" -p "$dockerpass"
docker pull openrct2/openrct2-build:15-focal
docker tag openrct2/openrct2-build:15-focal openrct2/openrct2-build:15
docker tag openrct2/openrct2-build:15-focal openrct2/openrct2-build:latest
docker push openrct2/openrct2-build:15
docker push openrct2/openrct2-build:latest
else
echo 'Images not tagged'
fi