Skip to content

16: Release

16: Release #103

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: [16-android, 16-noble, 16-bookworm, 16-format, 16-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:16-noble
docker tag openrct2/openrct2-build:16-noble openrct2/openrct2-build:16
docker tag openrct2/openrct2-build:16-noble openrct2/openrct2-build:latest
docker push openrct2/openrct2-build:16
docker push openrct2/openrct2-build:latest
else
echo 'Images not tagged'
fi