Skip to content

Commit

Permalink
Experimental new matrix build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
duckfullstop committed Feb 12, 2023
1 parent 513767c commit 68288c1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 80 deletions.
74 changes: 0 additions & 74 deletions .github/workflows/build-test.yml

This file was deleted.

23 changes: 17 additions & 6 deletions .github/workflows/build-stable.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Stable
name: Build

on:
push:
Expand All @@ -8,9 +8,21 @@ on:
- cron: '0 3 * * *'

jobs:
build:
cri:
runs-on: ubuntu-latest

strategy:
matrix:
train:
- stable
- testing
include:
- train: stable
tags: |
latest
stable
- train: testing
tags: |
testing
steps:
- name: Git checkout
uses: actions/checkout@v3
Expand All @@ -25,7 +37,7 @@ jobs:
- name: Discover upstream version
uses: ropenttd/cdn_version_scraper@master
with:
channel: 'stable'
channel: ${{ matrix.train }}
id: version

- name: Generate CRI metadata
Expand All @@ -43,8 +55,7 @@ jobs:
org.opencontainers.image.vendor=Reddit OpenTTD
org.opencontainers.image.version=${{ steps.version.outputs.version }}
tags: |
latest
stable
${{ matrix.tags }}
${{ steps.version.outputs.version }}
${{ steps.version.outputs.semver_major }}
Expand Down

0 comments on commit 68288c1

Please sign in to comment.